GuideLab Docs

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.

POST
/uploader/device/files/{fileId}/g/{gen}/parts/{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.

Authorization

uploaderKey
Authorization<token>

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

fileId*string
Length1 <= length <= 200
gen?|
Range0 <= value <= 2147483647
n*integer
Range1 <= value <= 10000

Response Body

application/json

curl -X POST "https://example.com/uploader/device/files/string/g/{gen}/parts/1"
{  "url": "string",  "expiresAt": "string"}
Empty
Empty
Empty
Empty
Empty
Empty
Empty