Update an API Token
Changed onChanges the name or enabled permission categories of an existing project API token. For the SignalWire REST API's project route, use Update API token.
The response contains the token's id, name, and permissions only. The token secret is returned once, by Generate a new API Token, and cannot be retrieved afterwards. To get a new value for the same token, use Regenerate API token.
Updating a token does not rotate or reissue its secret. The existing secret keeps working after the update.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Management.
Learn more about API scopes.
Request
- Base URLhttps://YOUR_SPACE.signalwire.com/api/laml/2010-04-01
- URLhttps://YOUR_SPACE.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/tokens/{token_id}
- AuthHTTP basic
Path parameters
Universal Unique Identifier.
The unique identifier for the project you want to use to authenticate this request.
Universal Unique Identifier.
The unique identifier of the project API token.
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
- breaking
removed the required property
from the response with the status
- breaking
- breaking
the
response's property type changed fromstringto no type, and format fromuuidto no format for status - info
added to the
response propertyallOflist for the response status
- breaking