Skip to main content
PUT
Send one window of an upload

Authorizations

Authorization
string
header
required

An Earnie API key, sent as Authorization: Bearer sk_earnie_.... Create one under Settings > API keys. The key's scopes decide which operations it may call.

Headers

Content-Range
string
required

RFC 9110 byte range, e.g. bytes 0-16777215/2986344448.

Path Parameters

projectId
string<uuid>
required
uploadId
string<uuid>
required

Body

application/octet-stream

The body is of type file.

Response

The window was accepted.

id
string<uuid>
required
filename
string
required
size_bytes
integer<int64>
required
offset
integer<int64>
required

Bytes the server holds. The next window starts here.

Required range: x >= 0
expires_at
string<date-time>
required

When an upload that receives no more bytes is discarded. Every accepted window moves it forward.

created_at
string<date-time>
required
model_id
string<uuid> | null

The Model the bytes sealed into, once the last window landed. When the same bytes were uploaded before, this is the existing Model.