# Edit an article

> Save an article's title, subtitle or body. Pass the current version from articles.get; it returns the new version. Call it only when the user asked for this in the conversation; never on your own initiative.

`articles.update` · write

- **MCP tool:** `update_article`. Loaded by default in MCP clients.
- **REST:** `POST /v1/articles/update`
- **CLI:** `xholic articles update`
- **Scope:** `write`
- **Plan:** Pro plan or higher
- **Cost:** Free.
- **Rate limit bucket:** `write`

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string (uuid) | Yes | Article id from articles.list. |
| `title` | string ≤ 200 chars | No |  |
| `subtitle` | string ≤ 280 chars or null | No |  |
| `document` | object | No | The whole body as a Tiptap/ProseMirror JSON document: {type:"doc",content:[paragraph, heading, bulletList, image... nodes]}. See docs.xholic.ai/api/articles. |
| `document.type` | "doc" | Yes |  |
| `version` | integer 1–9007199254740991 | Yes | The article's current version, from articles.get. A stale version is refused so edits never overwrite each other. |
| `account` | string ≤ 64 chars | No | X account to act on, as @handle. Leave it out to use the connection's default account. |
| `dryRun` | boolean | No | Return exactly what would happen without doing it. |
| `idempotencyKey` | string ≤ 200 chars | No | A unique key for this write. Repeating a call with the same key returns the first result instead of acting twice. |
