POST /model/draft
Patch Model Draft
Patch model draft — composable infra architecture.
Request Body (PatchModelDraftApiRequest)
| Field | Type | Required | Description |
|---|---|---|---|
draft_id | string | No | Existing draft ID to update |
input_draft_id | string | No | Existing draft ID to update |
idempotency_key | string | No | Operation key for accept/reject style ack |
soft | boolean | No | Stage the draft dormant (active=False) — propose; the ack ({idempotency_key, accept}) promotes/rejects it |
accept | boolean | No | Accept or reject when idempotency_key is supplied |
name | string | No | Display name value |
name_id | string | No | Name resource identifier |
description | string | No | Description text value |
description_id | string | No | Description resource identifier |
value | string | No | Direct model value |
value_id | string | No | Value resource identifier |
provider | string | No | Provider name to match |
provider_id | string | No | Provider identifier |
flag_ids | string[] | No | Selected flag option UUIDs — canonical; server derives semantics by flag type/value |
active | boolean | No | Denormalized model_active flag state |
modalities_enabled | boolean | No | Denormalized model_modalities_enabled flag state |
temperature_enabled | boolean | No | Denormalized model_temperature_enabled flag state |
pricing_enabled | boolean | No | Denormalized model_pricing_enabled flag state |
voices_enabled | boolean | No | Denormalized model_voices_enabled flag state |
reasoning_levels_enabled | boolean | No | Denormalized model_reasoning_levels_enabled flag state |
qualities_enabled | boolean | No | Denormalized model_qualities_enabled flag state |
departments | string[] | No | Department names to match |
department_ids | string[] | No | Department identifiers |
modalities | string[] | No | Modality labels to match |
modality_ids | string[] | No | Modality identifiers |
pricing | PricingDraftValue[] | No | Inline-create pricing entries. Entries without id are created; resulting IDs merge into pricing_ids. |
pricing_ids | string[] | No | Pricing tier identifiers |
qualities | string[] | No | Quality labels to match |
quality_ids | string[] | No | Quality level identifiers |
reasoning_levels | string[] | No | Reasoning level labels to match |
reasoning_level_ids | string[] | No | Reasoning level identifiers |
temperature_levels | string[] | No | Temperature level labels to match |
temperature_level_ids | string[] | No | Temperature level identifiers |
voices | string[] | No | Voice labels to create or match |
voice_ids | string[] | No | Voice identifiers |
pending_ids | string[] | No | Pending resource identifiers |
Response (PatchModelDraftApiResponse)
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Yes | Whether the draft save succeeded |
draft_id | string | Yes | Draft unique identifier |
idempotency_key | string | No | Idempotency key echoed back for client correlation |
message | string | Yes | Result message |
form_state | app__infra__model__types__DraftFormState | No | Server-authoritative form state |
Last updated on