Skip to content

Sign multipart parts

POST
/v0/namespaces/{namespace}/uploads/{upload_id}/parts

Returns one short-lived, checksum-bound upload capability per requested part of an open direct_multipart session. Asking again for a part is how a client retries it.

namespace
required
string

Namespace id

upload_id
required
string

Upload session id

Request for part-upload capabilities on an open multipart session.

object
parts
required

Parts to authorize, each with the checksum the provider will enforce on it. Asking again for a part already uploaded is how a client retries one: a repeated part is last-write-wins at the provider.

Array<object>

One part’s checksum, supplied by the client so the server can sign it into that part’s upload URL.

object
crc64nvme
required

CRC-64/NVME over this part’s bytes, lowercase hex.

string
part_number
required

One-based part number, at most the provider’s 10,000-part limit.

integer format: int32

Part capabilities issued

Response carrying one capability per requested part.

object
namespace_id
required

Namespace that owns the upload session.

string
parts
required

Capabilities in the order the request asked for them.

Array<object>

One authorized part upload.

object
access
required
One of:
ObjectTransferAccessPresignedUrl

Short-lived URL plus required headers for one object-store write.

object
expires_at_ms
required

Expiration timestamp in Unix milliseconds.

integer format: int64
headers

Headers that are covered by the signature and must be sent.

object
key
additional properties
string
kind
required
string
Allowed values: presigned_url
method
required

HTTP method the client must use.

string
url
required

Full presigned URL.

string
part_number
required

Part number this capability writes.

integer format: int32
upload_id
required

Session the parts belong to.

string

Invalid part request

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null

Unauthorized

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null

Namespace or upload not found

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null

Upload already completed

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null

Namespace deleted

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null

Direct multipart upload is unsupported

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null