Chelabase
ManagementStorage

Upload one part of a resumable upload

PUT
/v1/databases/{id}/branches/{branch_id}/storage/upload/session/{session}/{part}

One part (5 MiB to 100 MiB, the last may be smaller), streamed with no body cap here. Needs the role held at Developer.

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Database id

Formatuuid
branch_id*string

Branch id

Formatuuid
session*string

Upload session id

Formatuuid
part*integer

Part number, 1 to 10000

Formatint32
Range0 <= value

Query Parameters

role?string

The role to act as: row level security on storage.buckets and storage.objects decides what it sees and may do. Absent, owner or the owner's name: owner mode, for an Admin of the database only, which sees and writes past every policy (write-once buckets still hold) and writes objects with no owner (owner null).

claims?string

The JWT claims to run with: a JSON object (at most 4 KiB), {} when absent. Acting as authenticated with {"sub": "<user id>"} shows what that app user sees.

database?string

The Postgres database; the branch's main database when absent. It must be served by the data API.

upsert?boolean

Upload: replace an existing object.

download?string

Download as an attachment; the value is the file name (empty: the object's own).

Request Body

application/octet-stream

TypeScript Definitions

Use the request body type in TypeScript.

[index: integer]?integer
Formatint32
Range0 <= value

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/databases/497f6eca-6276-4993-bfeb-53cbbbba6f08/branches/497f6eca-6276-4993-bfeb-53cbbbba6f08/storage/upload/session/497f6eca-6276-4993-bfeb-53cbbbba6f08/0" \  -H "Content-Type: application/octet-stream" \  -d '<0>0</0>'
null