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

Add new tokens command for managing API tokens #170

Merged
merged 8 commits into from
Nov 3, 2020
Prev Previous commit
Next Next commit
fixup! Add new tokens command for managing API tokens
  • Loading branch information
cmoog committed Nov 3, 2020
commit 7bf7d014ae4d3a81b19e00b46c86e8c549b6e163
2 changes: 1 addition & 1 deletion coder-sdk/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type createAPITokenResp struct {

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