Skip to content

Commit

Permalink
Merge pull request #23 from netdata/fix/issue-token
Browse files Browse the repository at this point in the history
fix: change token endpoint
  • Loading branch information
witalisoft authored May 8, 2024
2 parents be412fb + 1e231b8 commit 4f49a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (c *Client) GetSpaceClaimToken(id string) (*string, error) {
if id == "" {
return nil, fmt.Errorf("id is empty")
}
req, err := http.NewRequest(http.MethodPost, fmt.Sprintf("%s/api/v1/spaces/%s/tokens", c.HostURL, id), nil)
req, err := http.NewRequest(http.MethodPost, fmt.Sprintf("%s/api/v1/spaces/%s/token/rotate", c.HostURL, id), nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 4f49a5b

Please sign in to comment.