Reference

Upload part

Uploads up to 16 MiB of a large file. Uploading the same bytes again is harmless, so a part can be retried. A commit's parts joins parts into a file within 7 days.

POST
/namespaces/{namespace}/uploads

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

namespace*string

A namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.

Request Body

body*fileapplication/octet-stream
Formatbinary

Response Body

The part.

application/json
  1. response
part*string

The BLAKE3 hash of the bytes, in hex.

size*integer

Bytes.

Example Request
curl -X POST 'https://example.com/v1/namespaces/string/uploads' \  -H 'Content-Type: application/octet-stream' \  -d 'string'
Example Response
{  "part": "string",  "size": 0}