***

title: update
slug: /reference/python/rest/project/update
description: Update an existing API token.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

### tokens.update

Update an existing API token. Uses PATCH.

<EndpointSchemaSnippet endpoint="PATCH /api/project/tokens/{token_id}" />

## **Response Example**

<EndpointResponseSnippet endpoint="PATCH /api/project/tokens/{token_id}" />

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

client.project.tokens.update("token-id", name="renamed-token")
```