Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 7bf7d01

Browse files
committed
fixup! Add new tokens command for managing API tokens
1 parent e98dfae commit 7bf7d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coder-sdk/tokens.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type createAPITokenResp struct {
2424

2525
func (c Client) CreateAPIToken(ctx context.Context, userID string, req CreateAPITokenReq) (token string, _ error) {
2626
var resp createAPITokenResp
27-
err := c.requestBody(ctx, http.MethodPost, "/api/api-keys/"+userID, req, &resp)
27+
err := c.requestBody(ctx, http.MethodPost, "/api/api-keys/"+userID, req, &resp)
2828
if err != nil {
2929
return "", err
3030
}

0 commit comments

Comments
 (0)