From 1e231b81da385a378a5a2a7207ccc903deaf57e9 Mon Sep 17 00:00:00 2001 From: Witold Duranek Date: Wed, 8 May 2024 08:14:50 +0200 Subject: [PATCH] fix: change token endpoint --- internal/client/spaces.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/client/spaces.go b/internal/client/spaces.go index 1f5e9f1..0f1b1ab 100644 --- a/internal/client/spaces.go +++ b/internal/client/spaces.go @@ -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 }