POST /department/draft
Patch Department Draft
Patch department draft — composable infra architecture.
Request Body (PatchDepartmentDraftApiRequest)
| Field | Type | Required | Description |
|---|---|---|---|
draft_id | string | No | Existing draft UUID to update |
input_draft_id | string | No | Existing draft UUID to update |
name | string | No | Name value to resolve or create |
name_id | string | No | UUID of the name resource |
description | string | No | Description value to resolve or create |
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 department_active flag state; resolved to a flag_ids entry server-side |
settings | string[] | No | Setting names to resolve |
setting_ids | string[] | No | Setting UUIDs to assign |
pending_ids | string[] | No | Resource IDs to keep pending where supported |
idempotency_key | string | No | Operation key for ack or retry |
soft | boolean | No | Stage the draft dormant (active=False) — propose; the ack ({idempotency_key, accept}) promotes/rejects it |
accept | boolean | No | Accept or reject dormant state |
Response (PatchDepartmentDraftApiResponse)
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Yes | Whether the draft save succeeded |
draft_id | string | Yes | UUID of the saved draft |
idempotency_key | string | No | Idempotency key for this draft operation |
message | string | Yes | Result message |
form_state | app__infra__department__types__DraftFormState | No | Server-authoritative form state |
Last updated on