Saltar al contenido principal
POST
Add a model file to a deployment

Autorizaciones

Authorization
string
header
requerido

A workspace-scoped Cloud JWT.

Parámetros de ruta

id
string
requerido

Cuerpo

application/json
blobId
string
requerido

The id of the workspace's upload holding the file.

type
string
requerido

The model folder the file goes in, such as loras or checkpoints.

filename
string

The file's name in that folder; the upload's own name where absent.

Respuesta

Accepted; the entry reads adding.

id
string
requerido
type
string
requerido

The model folder the file is in.

filename
string
requerido
status
enum<string>
requerido

adding until the deployment's workers can use the file, ready once they can, failed where it could not be added, and removing once a removal was asked.

Opciones disponibles:
adding,
ready,
failed,
removing
sizeBytes
integer<int64>
requerido

The file's size as its upload declared it.

failure
string

Why a failed file was not added, for the log; absent otherwise. Not for display: a surface says " was not added to this deployment. Remove it and add it again."