API reference

API reference · Account

Send one part

PUT/api/studio/uploads/{id}/parts/{n}Signed in session

Part n is the bytes from n * part_bytes, every part but the last exactly part_bytes long (400 part_size), sent in order (409 part_out_of_order); part 0 is checked by its bytes (415 content_mismatch). A part sent again after it was kept answers 200. Its own rate window. The signed in account; same origin for a write.

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe upload's id, sup_ followed by hex.
n (path)requiredintegerAt least 0.

Request body

application/octet-stream, required

The document names no fields for this body.

Answer 200

The upload, the part kept.

Fields of the 200 answer
FieldTypeWhat it is
idstring
objectstringOne of "studio.upload".
content_typestring
bytesinteger
part_bytesinteger
partsinteger
parts_receivedinteger
statusstringOne of "open", "completing".
expires_atinteger

Errors

  • 400OpenAI shaped error.
  • 401OpenAI shaped error.
  • 403OpenAI shaped error.
  • 404OpenAI shaped error.
  • 409OpenAI shaped error.
  • 415OpenAI shaped error.
  • 429OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter