Skip to main content

Update an API Token

Update an API Token's name or permissions.

Path Parameters
AccountSid uuid REQUIRED

The unique identifier for the project you want to use to authenticate this request.

token_id uuid REQUIRED

The unique identifier of the project API token that you want to update.

Request Body REQUIRED
name string

The name representing the project API token.

permissions string[]

The permissions you would like to enable for this project API token. Valid permissions are calling, chat, fax, management, messaging, numbers, pubsub, storage, tasking, and video

Responses
200

OK

Schema OPTIONAL
id string OPTIONAL

The ID of the created API Token.

name string OPTIONAL

The name of the created API Token.

permissions string[] OPTIONAL

The permissions enabled for this token.

token string OPTIONAL

The API token that can be used along with the project ID for basic authentication

422

Unprocessable Entity. You may have specified invalid parameters.

Schema OPTIONAL
type string
code string
message string
attribute string OPTIONAL
url uri