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
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The slug of the organization

Body Params

The token and properties to update on the token.

integer
required
Defaults to 1000

Maximum number of API calls allowed per hour

scopes
array of strings
required

List of scopes granted to the API Token

scopes*
string
enum
required
Defaults to organization

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

Allowed:
committer
object
required

Committer information to associate with the API Token

string
Defaults to api token

Name for the API Token

uuid

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

string

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

string

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

string

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

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json