Update API token
Changes the name or enabled permission categories of an existing project API token. Use it to rotate a token's responsibilities without replacing its identifier; remove permissions that the token's server-side caller no longer needs. For the account-scoped Compatibility API route, use Update an API Token.
The response contains the token's id, name, and permissions only. The token secret is returned once, by Create API token, and cannot be retrieved afterwards.
Permissions
With a project API token, the token must have the following scope(s) enabled to make a successful request: Management.
With a Personal access token there are no scopes. The token holder must be an owner or admin of the space, and the request reaches only the projects the holder is enabled for, plus their subprojects.
Learn more about API scopes.
Token Permissions
You can modify the functions allowed by this API Token by selecting which types of requests this API Token is allowed to make.
Valid options are: calling, chat, datasphere, fax, management, messaging, numbers, pubsub, storage, tasking, and video
Path parameters
Universal Unique Identifier.
The unique identifier of the token to update.
Request body
Example request
{
"name": "John Doe's Token",
"permissions": [
"calling",
"fax",
"messaging"
]
}Response
The request has succeeded.
Example response
{
"name": "John Doe's Token",
"permissions": [
"calling",
"fax",
"messaging"
]
}Changes
Changed in 4 of the 161 revisions of this API.23
- ○
the endpoint scheme security
SignalWireBasicAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
SignalWirePersonalAccessTokenAuthwas added to the APIapi-security-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
- ○
added the required property
to the response with the statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
Of the 161 revisions, 3 have a changelog that could not be searched.