update_document
Update a document (partial). Stamps updated_at. Also files a document against a record after the fact: pass entity + entity_id together (both, never one) to attach a previously unfiled upload once you know where it belongs, or both as null to detach it again. The target record is checked against the tenant first.
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_id": "<document_id>"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | New external link of the document | |
| title | No | Title of the document | |
| amount | No | Amount | |
| entity | No | File it against a record: lead|contact|account|campaign|user|asbest_project|raumbuchung_booking. Pass together with entity_id, or both null to detach. | |
| status | No | New status | |
| currency | No | Currency code (ISO 4217, e.g. EUR) | |
| doc_type | No | New document type | |
| entity_id | No | Record id — always together with entity. | |
| description | No | Description of the document | |
| document_id | Yes | ID of the document to change | |
| occurred_at | No | When it happened (ISO 8601) |