Upload document
paperless_upload_documentUpload a file to paperless-ngx for automatic OCR, tagging, and filing. Poll the task to get the resulting document ID.
Instructions
Upload a local file into paperless-ngx for consumption (OCR, tagging, filing). The file must live in one of the directories this server is allowed to read (PAPERLESS_UPLOAD_DIRS). Returns the consumption task id; consumption is asynchronous, so set wait_seconds to poll until it finishes and get back the created document id. Any field left unset is filled in by paperless’ own matching rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Title to use instead of one derived from the filename. | |
| created | No | Document date, e.g. `2016-04-19` or `2016-04-19 06:15:00+02:00`. | |
| tag_ids | No | Tag ids to apply on consumption. | |
| file_path | Yes | Path to the file on this machine. Must sit inside one of the PAPERLESS_UPLOAD_DIRS directories, which defaults to PAPERLESS_DOWNLOAD_DIR. | |
| wait_seconds | No | Poll the task endpoint for up to this many seconds and report the outcome. | |
| custom_fields | No | Map of custom field id to value, e.g. `{"3":"ACME-1234"}`. | |
| storage_path_id | No | ||
| correspondent_id | No | ||
| document_type_id | No | ||
| archive_serial_number | No |