POST /scenario/draft
Patch Scenario Draft
Patch scenario draft — composable infra architecture.
Request Body (PatchScenarioDraftApiRequest)
| Field | Type | Required | Description |
|---|---|---|---|
input_draft_id | string | No | UUID of the input draft |
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 |
problem_statement | string | No | Problem statement text value |
problem_statement_id | string | No | UUID of the problem statement resource |
objectives | string[] | No | Objective texts to create |
objective_ids | string[] | No | Existing objective UUIDs |
images | app__infra__scenario__types__DraftImageValue[] | No | Image values to create |
image_ids | string[] | No | Existing image UUIDs |
videos | app__infra__scenario__types__DraftVideoValue[] | No | Video values to create |
video_ids | string[] | No | Existing video UUIDs |
questions | app__infra__scenario__types__DraftQuestionValue[] | No | Question values to create |
question_ids | string[] | No | Existing question UUIDs |
options | app__infra__scenario__types__DraftOptionValue[] | No | Option values to create |
option_ids | string[] | No | Existing option UUIDs |
flag_ids | string[] | No | Selected flag option UUIDs — canonical; server derives semantics by flag type/value |
active | boolean | No | Denormalized scenario_active flag state |
video_enabled | boolean | No | Denormalized video_enabled flag state |
problem_statement_enabled | boolean | No | Denormalized problem_statement_enabled flag state |
objectives_enabled | boolean | No | Denormalized objectives_enabled flag state |
images_enabled | boolean | No | Denormalized images_enabled flag state |
questions_enabled | boolean | No | Denormalized questions_enabled flag state |
department_ids | string[] | No | Associated department UUIDs |
persona_ids | string[] | No | Associated persona UUIDs |
document_ids | string[] | No | Associated document UUIDs |
parameter_field_ids | string[] | No | Associated parameter field UUIDs |
pending_ids | string[] | No | Resource IDs to keep as pending (active=false on connection) |
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 (PatchScenarioDraftApiResponse)
| 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 (same as draft entry ID) |
message | string | Yes | Human-readable result message |
form_state | ScenarioDraftFormState | Yes | Server-authoritative form state |
Last updated on