update
tokens.update
Update an existing API token. Uses PATCH.
Path parameters
token_id
The unique identifier of the token to update.
Request
name
The name representing the API token.
permissions
The permissions you would like to enable for this token. Valid permissions are calling, chat, datasphere, fax, management, messaging, numbers, pubsub, storage, tasking, and video
Response
id
The ID of the API Token.
name
The name of the API Token. `null` when the token has no name.
permissions
The permissions enabled for this token.
last_used_at
The date and time the token last authenticated a request. `null` if it never has.
revoked_at
The date and time SignalWire revoked the token's value, for example after detecting that the value was exposed. `null` if it has not been revoked. A revoked token keeps its `id` and still appears in [List API tokens](/docs/apis/rest/project-tokens/list-tokens), but its previous value no longer authenticates and no replacement value has been issued to you. To get a working value, [regenerate the token](/docs/apis/rest/project-tokens/regenerate-token), which also clears `revoked_at`.
Response Example
Response