***

title: update
slug: /reference/python/rest/datasphere/update
description: Update a document.
max-toc-depth: 3
---------------------

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

Update an existing document.

<EndpointSchemaSnippet endpoint="PATCH /api/datasphere/documents/{id}" />

## **Response Example**

<EndpointResponseSnippet endpoint="PATCH /api/datasphere/documents/{id}" />

## **Example**

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

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

updated = client.datasphere.documents.update(
    "document-id",
    tags=["support", "updated"],
)
print(updated.get("tags"))
```