Skip to main content

Partially update a custom model (rename only)

PATCH 

/v1/models/:model_uuid

Apply a partial update to a custom model.

Today only name is patchable. Send {"name": "new-name"} to rename without resubmitting the full model state. Renames are applied synchronously and do not re-run generation.

Idempotency. PATCHing the current name is a no-op and returns 200 with the current snapshot.

Concurrency. Refuses to update a model with an in-progress update status - either pending or running - and will fail with MODEL_UPDATE_IN_PROGRESS, or in failed state and will fail with MODEL_IN_FAILED_STATE. Per the API contract, DELETE and recreate the model to escape failed.

Authentication. Requires a valid X-API-Key header.

Request

Responses

The model after the rename has been applied. PATCH is synchronous: no worker run, no PENDING state.