Update an API Token
Update an API Token’s name or permissions.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Management.
Authentication
AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing
the word Basic followed by a space and a base64-encoded string of project_id:token.
The project ID will be used as the username and the API token as the password.
Example:
```
Authorization: Basic base64(project_id:token)
```
Path parameters
AccountSid
The unique identifier for the project you want to use to authenticate this request.
token_id
The unique identifier of the project API token.
Request
This endpoint expects an object.
name
The name representing the project API token.
permissions
The permissions you would like to enable for this project API token. If not provided, existing permissions are kept. Valid permissions are: calling, chat, datasphere, fax, management, messaging, numbers, pubsub, storage, tasking, and video.
Response
The request has succeeded.
id
The unique identifier of the created API Token.
name
The name of the created API Token.
permissions
The permissions enabled for this token.
token
The API token that can be used along with the project ID for basic authentication.