Skip to Content

POST /model/draft

Patch Model Draft

Patch model draft — composable infra architecture.

Request Body (PatchModelDraftApiRequest)

FieldTypeRequiredDescription
draft_idstringNoExisting draft ID to update
input_draft_idstringNoExisting draft ID to update
idempotency_keystringNoOperation key for accept/reject style ack
softbooleanNoStage the draft dormant (active=False) — propose; the ack ({idempotency_key, accept}) promotes/rejects it
acceptbooleanNoAccept or reject when idempotency_key is supplied
namestringNoDisplay name value
name_idstringNoName resource identifier
descriptionstringNoDescription text value
description_idstringNoDescription resource identifier
valuestringNoDirect model value
value_idstringNoValue resource identifier
providerstringNoProvider name to match
provider_idstringNoProvider identifier
flag_idsstring[]NoSelected flag option UUIDs — canonical; server derives semantics by flag type/value
activebooleanNoDenormalized model_active flag state
modalities_enabledbooleanNoDenormalized model_modalities_enabled flag state
temperature_enabledbooleanNoDenormalized model_temperature_enabled flag state
pricing_enabledbooleanNoDenormalized model_pricing_enabled flag state
voices_enabledbooleanNoDenormalized model_voices_enabled flag state
reasoning_levels_enabledbooleanNoDenormalized model_reasoning_levels_enabled flag state
qualities_enabledbooleanNoDenormalized model_qualities_enabled flag state
departmentsstring[]NoDepartment names to match
department_idsstring[]NoDepartment identifiers
modalitiesstring[]NoModality labels to match
modality_idsstring[]NoModality identifiers
pricingPricingDraftValue[]NoInline-create pricing entries. Entries without id are created; resulting IDs merge into pricing_ids.
pricing_idsstring[]NoPricing tier identifiers
qualitiesstring[]NoQuality labels to match
quality_idsstring[]NoQuality level identifiers
reasoning_levelsstring[]NoReasoning level labels to match
reasoning_level_idsstring[]NoReasoning level identifiers
temperature_levelsstring[]NoTemperature level labels to match
temperature_level_idsstring[]NoTemperature level identifiers
voicesstring[]NoVoice labels to create or match
voice_idsstring[]NoVoice identifiers
pending_idsstring[]NoPending resource identifiers

Response (PatchModelDraftApiResponse)

FieldTypeRequiredDescription
successbooleanYesWhether the draft save succeeded
draft_idstringYesDraft unique identifier
idempotency_keystringNoIdempotency key echoed back for client correlation
messagestringYesResult message
form_stateapp__infra__model__types__DraftFormStateNoServer-authoritative form state
Last updated on