The computer asks where to send part n
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.
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.
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
Path Parameters
1 <= length <= 2000 <= value <= 21474836471 <= value <= 10000Response Body
application/json
curl -X POST "https://example.com/uploader/device/files/string/g/{gen}/parts/1"{ "url": "string", "expiresAt": "string"}The computer registers an item POST
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 computer starts sending a file POST
Starts the generation's multipart upload, or answers the one already started. Parts are 16 MiB. 413 UPLOADER_FILE_TOO_LARGE past 2 GiB; 409 UPLOADER_ITEM_PARKED (details `{parkReason}`) when the item waits for a person; 429 with Retry-After past 3,600 new uploads an hour.