Update Document
update_documentUpdate selected fields of a document in Paperless-NGX, including title, tags, correspondent, and metadata. Note: responses omit OCR content; retrieve it separately for updated text.
Instructions
Patch selected fields on a document.
The response strips OCR content. Use get_document_content or a
transfer link when the updated text is needed.
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>",
"patch": "<patch>"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| tags | No | ||
| added | No | ||
| notes | No | ||
| owner | No | ||
| title | Yes | ||
| content | No | ||
| created | Yes | ||
| web_url | No | ||
| modified | No | ||
| page_count | No | ||
| created_date | No | ||
| storage_path | No | ||
| correspondent | No | ||
| custom_fields | No | ||
| document_type | No | ||
| user_can_change | No | ||
| archived_file_name | No | ||
| original_file_name | No | ||
| archive_serial_number | No |