Skip to main content
PUT
/
models
/
{modelId}
Update model metadata
curl --request PUT \
  --url https://core.cyberun.cloud/api/v1/models/{modelId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "display_name": "SDXL Base 1.0 (Updated)",
  "model_type": "loras",
  "model_path": "models/checkpoints/sdxl_base_1.0.safetensors",
  "model_status": "active"
}
'
{
  "id": "019abc12-3456-7890-abcd-ef1234567890"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cyberun.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT (Bearer ). Must be paired with the X-Team-ID request header on team-scoped endpoints so the server knows which team's resources to operate on.

Headers

X-Team-ID
string<uuid>

UUID of the team to scope the request to. Used by dual-auth endpoints (runtime + scoped management):

  • JWT callers MUST send it — a user may belong to multiple teams and the runtime cannot otherwise know which one to operate on. Missing header → 400.
  • Credential callers (sk-, dk-) can omit it because the team is derived from the credential row itself. Any value sent is ignored.
Example:

"019abc12-4567-7890-abcd-ef1234567891"

Path Parameters

modelId
string<uuid>
required

UUID of the model.

Body

application/json

Update model metadata. Only provided fields are changed.

display_name
string

Human-readable name for the model.

Required string length: 1 - 255
Example:

"SDXL Base 1.0 (Updated)"

model_type
string

Updated type/subdirectory of the model.

Required string length: 1 - 50
Example:

"loras"

model_path
string

Updated relative path inside ComfyUI models directory. Must not contain .., backslashes, or be absolute.

Pattern: ^(?!/)(?!.*\.\.)(?!.*\\)[\w./ -]+$
Example:

"models/checkpoints/sdxl_base_1.0.safetensors"

model_status
enum<string>

Model status: active for sync, disabled to exclude from sync.

Available options:
active,
disabled
Example:

"active"

Response

Model updated

id
string<uuid>
required

UUID of the created or updated resource.

Example:

"019abc12-3456-7890-abcd-ef1234567890"