The computer registers an item
The body is the item's manifest (at most 4 MiB), read only after the key; the item is known by the SHA-256 of its exact bytes and its `ref`. The same bytes again answer the item's current state; other bytes under the same ref are 409 UPLOADER_ITEM_CHANGED. An item whose patient was erased answers `erased: true` with no files. 202 `{parked: true, reason}`: `invalid` (unreadable, nothing stored), `manifest_too_large` (over 4 MiB, nothing stored) or `too_large` (a file over 2 GiB: recorded and parked, nothing uploaded). 429 with Retry-After past 100 new items a minute.
The body is the item's manifest (at most 4 MiB), read only after the key; the item is known by the SHA-256 of its exact bytes and its ref. The same bytes again answer the item's current state; other bytes under the same ref are 409 UPLOADER_ITEM_CHANGED. An item whose patient was erased answers erased: true with no files. 202 {parked: true, reason}: invalid (unreadable, nothing stored), manifest_too_large (over 4 MiB, nothing stored) or too_large (a file over 2 GiB: recorded and parked, nothing uploaded). 429 with Retry-After past 100 new items a minute.
Authorization
uploaderKey Uploader <key>: the 43 base64url characters a Guidelab Uploader computer made and registered by its SHA-256 (POST /uploader/computers). Accepted only on /uploader/device/*; revoking the computer ends it.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/uploader/device/items" \ -H "Content-Type: application/json" \ -d '{}'{ "ref": "string", "state": "importing", "parkReason": "too_large", "files": [ { "ref": "string", "id": "string", "generation": 0, "uploaded": true } ], "erased": true}{ "parked": true, "reason": "too_large"}The computer reads its items' states GET
State, match note, park reason and files of each named item this computer sent (1 to 100 refs); a ref the server does not hold is left out. Never a name; an erased item answers only its tombstone.
The computer asks where to send part n POST
A presigned R2 UploadPart URL pinned to the exact length of part `n` (from 1), valid 15 minutes; the computer PUTs the bytes there itself. The bytes count against the computer's 200 GB a UTC day: past it, 429 UPLOADER_DAILY_PACE with Retry-After at the next midnight. 409 UPLOADER_NOT_SENDING when the file has no upload started.