Skip to content

Commit 4f49a5b

Browse files
authored
Merge pull request #23 from netdata/fix/issue-token
fix: change token endpoint
2 parents be412fb + 1e231b8 commit 4f49a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/client/spaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (c *Client) GetSpaceClaimToken(id string) (*string, error) {
107107
if id == "" {
108108
return nil, fmt.Errorf("id is empty")
109109
}
110-
req, err := http.NewRequest(http.MethodPost, fmt.Sprintf("%s/api/v1/spaces/%s/tokens", c.HostURL, id), nil)
110+
req, err := http.NewRequest(http.MethodPost, fmt.Sprintf("%s/api/v1/spaces/%s/token/rotate", c.HostURL, id), nil)
111111
if err != nil {
112112
return nil, err
113113
}

0 commit comments

Comments
 (0)