Update document
update_documentUpdate a Paperless document's title, correspondent, type, storage path, dates, owner, tags, or custom fields; only the fields you specify change.
Instructions
Change a document's title, correspondent, type, storage path, dates, owner, tags or custom fields.
Only what you name changes; everything else stays, also the other custom fields and tags. Names match like in search_documents; an unknown or ambiguous name is an error that lists candidates and nothing is changed. Tags are hierarchical in Paperless: a child tag always comes with its parent (implicit_tags lists parents added for you), and removing a parent while its children stay is refused. Document links are symmetrical: linking A to B also links B to A and needs change permission on B. Asking for what already holds changes nothing. It reads, then writes: a concurrent change of the same document's tags or custom fields in between is overwritten. Tags created with create_missing_tags are private to you; tag names that are only numbers cannot be addressed by name. Returns the document as get_document does, plus implicit_tags.
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 |
|---|---|---|---|
| clear | No | Fields to empty: correspondent, document_type, storage_path, archive_serial_number or owner (no owner makes the document visible to every user with the document permission). | |
| owner | No | Username or id of the new owning user. | |
| title | No | New title (at most 128 characters). | |
| confirm | No | Required to change owner (also to no owner): the new owner takes the document over and you may lose access, which you cannot undo yourself. | |
| created | No | New creation date (YYYY-MM-DD). | |
| tags_add | No | Tag names or ids to add; the others stay. | |
| tags_set | No | Replace all tags with exactly these (not with tags_add or tags_remove). | |
| document_id | Yes | Document id, from search_documents. | |
| tags_remove | No | Tag names or ids to take off; the others stay. | |
| storage_path | No | Name or id; see list_taxonomy. | |
| correspondent | No | Name or id; see list_taxonomy. | |
| custom_fields | No | Custom field values to set, keyed by field name or id; other fields stay. Values by data type: string/longtext text; url with scheme; date 'YYYY-MM-DD'; boolean true/false; integer; float; monetary 'EUR12.50' (or 12.5); documentlink a list of document ids; select the option's label. | |
| document_type | No | Name or id; see list_taxonomy. | |
| create_missing_tags | No | Create tags in tags_add or tags_set that do not exist yet; they are private to you (their creator) until shared. Names of only digits are read as ids. | |
| remove_custom_fields | No | Custom field names or ids to take off the document. | |
| archive_serial_number | No | New archive serial number; it must be unused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| tags | Yes | ||
| added | Yes | ||
| notes | No | Only with include notes. | |
| owner | Yes | Null: no owner, visible to every user. | |
| title | Yes | ||
| created | Yes | ||
| history | No | Only with include history. | |
| web_url | Yes | Link to the document in the Paperless web UI. | |
| modified | Yes | ||
| versions | No | Only with include versions. | |
| mime_type | Yes | ||
| page_count | Yes | ||
| notes_count | Yes | ||
| suggestions | No | Only with include suggestions. | |
| unavailable | No | Included sections the user may not read in Paperless. | |
| storage_path | Yes | ||
| correspondent | Yes | ||
| custom_fields | Yes | ||
| document_type | Yes | ||
| file_metadata | No | Only with include metadata. | |
| implicit_tags | No | Parent tags added because a child tag was added or kept: Paperless tags are hierarchical and a child needs its parent. | |
| original_file_name | Yes | ||
| archive_serial_number | Yes |