v1

latestOpenAPI 3.0.02026-07-249055687.1 KB
api-tokens

Update API Token

Update an API Token. The API Token created must use a subset of permissions the API token creating them.

This endpoint consumes 10 units of your quota.

This endpoint requires the following org token scopes:

  • api-tokens:create
post/orgs/{org_slug}/api-tokens/update

Path parameters

org_slugstring required

The slug of the organization

Request body

max_quotainteger required

Maximum number of API calls allowed per hour

scopesstring[] required

List of scopes granted to the API Token

visibility'admin' | 'organization' required

The visibility of the API Token. Warning: this field is deprecated and will be removed in the future.

namestring

Name for the API Token

uuidstring uuid

The stable group UUID to update (provide uuid, id, token, or hash. May provide uuid+hash together for validation)

idstring

The API token ID to update (provide uuid, id, token, or hash)

tokenstring

The API token to update (provide uuid, id, token, or hash)

hashstring

The API token hash to update (provide uuid, id, token, or hash)

Response

The updated token.

hashstring required

SRI-format hash of the API token (e.g., sha512-base64hash)