Skip to main content
POST
Get a weights upload slot

Authorizations

Authorization
string
header
required

A Reactor API key (rk_...), sent as Authorization: Bearer rk_.... Keep it on a server.

Path Parameters

proj_id
string<uuid>
required

The project's ID, a UUID. It is not the model's ID.

set
string
required

The full set digest, sha256:<64 hex> or the 64 hex characters. A tag or prefix is not accepted.

Body

application/json
size
integer<int64>
required

Bytes. The upload must send exactly this many.

Required range: x >= 0
mime_type
string
required

Send application/octet-stream.

sha256
string
required

The file's SHA-256, as 64 hex characters.

name
string

The file's path in the manifest.

kind
enum<string>
default:file
Available options:
file
force
boolean
default:false

Upload again even when the file is already stored.

Response

An upload slot, or copied when the file is already stored.

path
string
required

The file's storage key.

presigned_url
string

Upload the bytes here with HTTP PUT. Absent when copied is true.

copied
boolean

True when the file is already stored. Upload nothing.

source_path
string