update_document
Modify a single document's fields like title, tags, or correspondent, changing only the values you provide. Ideal for fixing metadata or content without altering other properties.
Instructions
Update fields on ONE document (PATCH — only fields you supply are changed). To change tags, prefer add_tags / remove_tags: they leave the other tags alone. tags REPLACES the whole list — any tag you leave out is removed. Every tag change returns tag_changes {added, removed}. Editable fields: title, correspondent, document_type, storage_path, tags, add_tags, remove_tags, content (raw searchable text), created (document date, YYYY-MM-DD), archive_serial_number, owner, custom_fields. For applying the same change to MANY documents, see edit_documents_bulk. To add a comment/annotation rather than change a field, see create_document_note.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the document to update | |
| tags | No | REPLACES all tags with exactly this list — tags not listed are removed. To add or remove single tags use add_tags / remove_tags. | |
| owner | No | The ID of the user who owns the document | |
| title | No | The new title for the document (max 128 characters). Paperless also derives the stored file name from it and replaces characters that aren't allowed in file names (such as /), so archived_file_name can differ from the title. | |
| content | No | The raw text content of the document (used for searching) | |
| created | No | The creation date in YYYY-MM-DD format | |
| add_tags | No | Tag IDs to add; the document's other tags are kept | |
| remove_tags | No | Tag IDs to remove; the document's other tags are kept | |
| storage_path | No | The ID of the storage path to assign | |
| correspondent | No | The ID of the correspondent to assign | |
| custom_fields | No | Array of custom field values to assign | |
| document_type | No | The ID of the document type to assign | |
| archive_serial_number | No | The archive serial number (0-4294967295) |