GuideLab Docs

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.

POST
/uploader/device/items

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
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

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"}
Empty
Empty
Empty
Empty
Empty