Skip to main content
POST
Creates a multipart upload session. The service returns the part size and part count; the actual bytes are uploaded directly to object storage.
string
required
API key for authentication.

Path

string
required
The project identifier.

Body

string
required
Original file name, non-empty, at most 512 characters.
number
required
Exact byte length of the file. Greater than 0 and not greater than capabilities.maxSourceBytes.
string
Optional. When omitted or blank the service uses application/octet-stream. At most 128 characters; CR/LF are rejected.

Response

string
The upload session identifier. Use it for signing parts, polling status and completing.
string
Project identifier.
string
CREATED right after creation.
string
The declared size, as a string.
number
The size of each part, as decided by the service. Use it as returned.
number
The number of parts to upload. Use it as returned.
string
When the session expires (24 hours by default).
Do not assume a fixed 16 MiB part size or a fixed 3 GiB limit. Read partSizeBytes and totalParts from this response and maxSourceBytes from capabilities.

Common errors

  • code = 47125: the file exceeded the size limit, or the declared size is not greater than zero / the request is empty.
  • code = 47101: filename is missing or too long, or contentType is invalid.
  • code = 47102: the project does not exist or is not owned by your account.
  • code = 47127: object storage is unavailable — retry.