---
title: "Update API token"
method: PATCH
path: "/api/project/tokens/{token_id}"
tags: ["Project Tokens"]
---

# Update API token

`PATCH /api/project/tokens/{token_id}`

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_.

[Learn more about API scopes](/docs/platform/your-signalwire-api-space).

#### Token Permissions

You can modify the functions allowed by this API Token by selecting which types of requests this API Token is allowed to make.

Valid options are: calling, chat, datasphere, fax, management, messaging, numbers, pubsub, storage, tasking, and video

## Path parameters

- `token_id` string, uuid, required — Universal Unique Identifier.

## Request body

- ProjectUpdateTokenRequest — Request body for updating an API Token.
  - `name` string — The name representing the API token.
  - `permissions` ProjectTokenPermission[] — 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 `200`

The request has succeeded.

- ProjectTokenResponse
  - `id` string, uuid, required — Universal Unique Identifier.
  - `name` string, required — The name of the created API Token.
  - `permissions` ProjectTokenPermission[], required — The permissions enabled for this token.
  - `token` string, required — The API token that can be used along with the project ID for basic authentication

## Other responses

- `401` — Access is unauthorized.
- `404` — The server cannot find the requested resource.
- `422` — The request contains invalid parameters. See errors for details.
- `500` — An internal server error occurred.

---

[API](https://skmtc.net/signalwire/apis/signalwire-rest-api.md) · [All operations](https://skmtc.net/signalwire/apis/signalwire-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/signalwire/signalwire-rest-api/versions/05c5164b85c7/schema)
