Skip to Content

POST /simulation/draft

Patch Simulation Draft

Patch simulation draft — composable infra architecture.

Request Body (PatchSimulationDraftApiRequest)

FieldTypeRequiredDescription
draft_idstringNoExisting draft UUID to patch
input_draft_idstringNoLegacy alias for the input draft UUID
namestringNoDisplay name value
name_idstringNoUUID of the name resource
descriptionstringNoDescription text value
description_idstringNoUUID of the description resource
flag_idsstring[]NoSelected flag option UUIDs — canonical; server derives semantics by flag type/value
activebooleanNoDenormalized simulation_active flag state
practicebooleanNoDenormalized practice flag state
department_idsstring[]NoAssociated department UUIDs
scenario_idsstring[]NoAssociated scenario UUIDs
scenario_flag_idsstring[]NoExisting scenario flag UUIDs
scenario_flagsDraftScenarioFlagValue[]NoScenario flag values to create
scenario_flag_valuesDraftScenarioFlagDenormValue[]NoDenormalized (scenario_id, type, value) entries resolved server-side to scenario_flags_resource rows
scenario_position_idsstring[]NoExisting scenario position UUIDs
scenario_positionsDraftScenarioPositionValue[]NoScenario position values to create
scenario_rubric_idsstring[]NoExisting scenario rubric UUIDs
scenario_rubricsDraftScenarioRubricValue[]NoScenario rubric values to create
scenario_time_limit_idsstring[]NoExisting scenario time limit UUIDs
scenario_time_limitsDraftScenarioTimeLimitValue[]NoScenario time limit values to create
pending_idsstring[]NoResource IDs to keep as pending where supported by the tool layer
idempotency_keystringNoOperation key for ack — promotes or rejects a dormant draft
softbooleanNoStage the draft dormant (active=False) — propose; the ack ({idempotency_key, accept}) promotes/rejects it
acceptbooleanNoAccept (promote) or reject dormant state. Only meaningful with idempotency_key

Response (PatchSimulationDraftApiResponse)

FieldTypeRequiredDescription
successbooleanYesWhether the operation succeeded
draft_idstringYesUUID of the saved draft
idempotency_keystringYesIdempotency key for this draft operation
messagestringYesHuman-readable result message
form_stateapp__infra__simulation__types__DraftFormStateYesServer-authoritative form state
Last updated on