Update a document
update_documentChange a draft's content (title, lines, taxLines, body, footer, currency, dates, client), or a document's labels or memo at any status. A sent document's content is locked: use new_version for a quote or contract, copy_document to redo an invoice. A note alone is posted to the thread.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document": "<document>"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| memo | No | Replaces the person's private memo (Markdown): never printed, never on the link. Any status. | |
| note | No | ||
| lines | No | The priced lines. The server computes the amounts, the subtotal, the tax and the total. | |
| title | No | ||
| client | No | Move a draft to another client. | |
| footer | No | ||
| labels | No | Replaces the document's labels with exactly these. | |
| dueDate | No | ||
| currency | No | ||
| document | Yes | The document's id (from list_documents), or its number once sent, like INV-0007. | |
| taxLines | No | Tax lines on the subtotal. Omit to use the settings' default; [] for none. | |
| issueDate | No |