Skip to main content
POST
Reserve an immutable image upload for Pi

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
mediaType
string
required
Maximum string length: 120
Pattern: ^image\/[a-zA-Z0-9!#$&^_.+-]+$
byteSize
integer
required
Required range: 1 <= x <= 33554432
sha256
string
required
Pattern: ^[a-f0-9]{64}$
idempotencyKey
string
required
Required string length: 1 - 160

Response

Idempotent upload receipt

artifactId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
mediaType
string
required
byteSize
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
sha256
string
required
state
enum<string>
required
Available options:
pending,
uploading,
ready,
deleting,
deleted
uploadUrl
string<uri>
required
readUrl
string<uri>
required