POST /simulation/draft
Patch Simulation Draft
Patch simulation draft — composable infra architecture.
Request Body (PatchSimulationDraftApiRequest)
| Field | Type | Required | Description |
|---|---|---|---|
draft_id | string | No | Existing draft UUID to patch |
input_draft_id | string | No | Legacy alias for the input draft UUID |
name | string | No | Display name value |
name_id | string | No | UUID of the name resource |
description | string | No | Description text value |
description_id | string | No | UUID of the description resource |
flag_ids | string[] | No | Selected flag option UUIDs — canonical; server derives semantics by flag type/value |
active | boolean | No | Denormalized simulation_active flag state |
practice | boolean | No | Denormalized practice flag state |
department_ids | string[] | No | Associated department UUIDs |
scenario_ids | string[] | No | Associated scenario UUIDs |
scenario_flag_ids | string[] | No | Existing scenario flag UUIDs |
scenario_flags | DraftScenarioFlagValue[] | No | Scenario flag values to create |
scenario_flag_values | DraftScenarioFlagDenormValue[] | No | Denormalized (scenario_id, type, value) entries resolved server-side to scenario_flags_resource rows |
scenario_position_ids | string[] | No | Existing scenario position UUIDs |
scenario_positions | DraftScenarioPositionValue[] | No | Scenario position values to create |
scenario_rubric_ids | string[] | No | Existing scenario rubric UUIDs |
scenario_rubrics | DraftScenarioRubricValue[] | No | Scenario rubric values to create |
scenario_time_limit_ids | string[] | No | Existing scenario time limit UUIDs |
scenario_time_limits | DraftScenarioTimeLimitValue[] | No | Scenario time limit values to create |
pending_ids | string[] | No | Resource IDs to keep as pending where supported by the tool layer |
idempotency_key | string | No | Operation key for ack — promotes or rejects a dormant draft |
soft | boolean | No | Stage the draft dormant (active=False) — propose; the ack ({idempotency_key, accept}) promotes/rejects it |
accept | boolean | No | Accept (promote) or reject dormant state. Only meaningful with idempotency_key |
Response (PatchSimulationDraftApiResponse)
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Yes | Whether the operation succeeded |
draft_id | string | Yes | UUID of the saved draft |
idempotency_key | string | Yes | Idempotency key for this draft operation |
message | string | Yes | Human-readable result message |
form_state | app__infra__simulation__types__DraftFormState | Yes | Server-authoritative form state |
Last updated on