> ## Documentation Index
> Fetch the complete documentation index at: https://00doc-web.vercel.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# update_document

> Update a document's title or description without publishing new HTML.

# update\_document

Update document **metadata** (title and description). This does not create a new HTML version — use [`publish_document`](/api-reference/publish-document) to change content.

## Parameters

| Parameter     | Type   | Required | Description                                                 |
| ------------- | ------ | -------- | ----------------------------------------------------------- |
| `document_id` | uuid   | Yes      | The document to update                                      |
| `title`       | string | No       | New title (1–500 characters)                                |
| `description` | string | No       | New description (up to 2000 characters), or `null` to clear |

At least one of `title` or `description` must be provided.

## Returns

JSON document object as text (same shape as `PATCH /api/v1/documents/:id`).

## Example

```
Tool call: update_document
  document_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  title: "Q3 Sales Proposal — Acme Corp (revised)"
  description: "Updated after legal review"
```

## Notes

* Maps to **`PATCH /api/v1/documents/:id`** on the REST API.
* Does not change what recipients see on the share link — only the published HTML does.

<Card title="publish_document" icon="upload" href="/api-reference/publish-document" />
