Update a model
Patches model metadata; omitted fields are left unchanged. Lifecycle state is not patchable — useDocumentation Index
Fetch the complete documentation index at: https://u22a8-police-sweep-2026-06-01.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
POST …/train to move a draft to ready and DELETE to archive.Authorizations
API key issued in the platform console, sent as Authorization: Bearer <key>.
Path Parameters
Model handle, e.g. 'u22a8.technical-writing'.
"u22a8.technical-writing"
Body
PATCH /v1/models/{handle} body. Missing fields mean no change.
state is intentionally not patchable: move a model with
POST /train (draft → ready) or DELETE (archive), never a
PATCH override. Unknown fields (including state) are rejected so
the contract is explicit rather than a silent no-op.
Toggle zero-data-retention. Turning it on purges existing samples. Turning it off applies going forward only — earlier purges are not reversed.
Auto-prune policy override. Keys: keep_unnamed (int, default 100), keep_first_of_month (bool, default True). Null clears the override and reverts to defaults.
{
"keep_first_of_month": true,
"keep_unnamed": 50
}Response
Successful Response
"u22a8.compelling-readme"
"balanced_cosine"
Lifecycle state: draft, busy, ready, failed, or archived. busy is the transient state while an asynchronous operation (training, discovery, retraining) runs — see last_operation for which one.
"draft"
"busy"
"ready"
"failed"
"archived"
"scoring"
["Clarity", "Flow"]Identifier of the version currently serving scores. Null before the first successful train; updates on every successful train or retrain.
Version number of the active snapshot — the integer behind vN. Null before the first train.
User-named tags pointing at the active version.
Whether zero-data-retention is enabled. When on, submitted content is not retained.
The most recent lifecycle operation: {kind, status, started_at, run_id?, progress?, error?}. kind identifies what the model is doing while busy (e.g. train, discover, retrain). Null on models that have never run an operation.
{
"kind": "train",
"run_id": "run_abc",
"started_at": "2026-05-19T12:00:00Z",
"status": "succeeded"
}