Bulk Edit Documents
bulk_edit_documentsApply edits to many Paperless documents at once: set correspondents, types, or storage paths, add/remove tags, modify custom fields, delete, merge, split, rotate, or redo OCR.
Instructions
Apply a bulk operation to a set of documents.
Paperless writes the change before answering OK, then queues the
search-index rebuild as a background task. A following
search_documents call can therefore miss the edited documents for
seconds to minutes, while list_documents and get_document
reflect the change at once. Metadata operations queue a
bulk_update task: find it with
list_tasks(task_type="bulk_update") and wait_for_task on its
task_id to wait for full-text search to catch up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| operation | Yes | ||
| parameters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |