aboutsummaryrefslogtreecommitdiffstats
path: root/pput-gui
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-20 19:14:15 +0200
committerDanilo M. <danix@danix.xyz>2026-09-20 19:14:15 +0200
commitb548bf2f89e5d6f23b6ff2c4838e2f31e6010848 (patch)
tree573d0ca483e2bae53de5a50ab6a55fdef21ba1b2 /pput-gui
downloadpput-b548bf2f89e5d6f23b6ff2c4838e2f31e6010848.tar.gz
pput-b548bf2f89e5d6f23b6ff2c4838e2f31e6010848.zip
feat: upload documents to paperless-ngx from the CLI
Single bash script over the paperless REST API. Posts each file to /api/documents/post_document/, then polls /api/tasks/ until the document is consumed, so each file gets a real outcome instead of a task id. The task response needed care: it is a paginated object rather than a bare list, statuses are lowercase, and the outcome lives in result_data as a dict, carrying duplicate_of when paperless rejects re-uploaded content. test_status.sh covers those shapes. Token is read from pass, never passed as an argument. Host, pass entry and timeout are environment-overridable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'pput-gui')
0 files changed, 0 insertions, 0 deletions