Skip to main content

Update an API Token

PATCH 

/Accounts/:AccountSid/tokens/:token_id

Update an API Token's name or permissions.

Request

Path Parameters

    AccountSid uuidrequired

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

    token_id uuidrequired

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

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

OK

Schema

    id string

    The ID of the created API Token.

    name string

    The name of the created API Token.

    permissions string[]

    The permissions enabled for this token.

    token string

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

Loading...