Skip to Content

POST /department/draft

Patch Department Draft

Patch department draft — composable infra architecture.

Request Body (PatchDepartmentDraftApiRequest)

FieldTypeRequiredDescription
draft_idstringNoExisting draft UUID to update
input_draft_idstringNoExisting draft UUID to update
namestringNoName value to resolve or create
name_idstringNoUUID of the name resource
descriptionstringNoDescription value to resolve or create
description_idstringNoUUID of the description resource
flag_idsstring[]NoSelected flag option UUIDs — canonical; server derives semantics by flag type/value
activebooleanNoDenormalized department_active flag state; resolved to a flag_ids entry server-side
settingsstring[]NoSetting names to resolve
setting_idsstring[]NoSetting UUIDs to assign
pending_idsstring[]NoResource IDs to keep pending where supported
idempotency_keystringNoOperation key for ack or retry
softbooleanNoStage the draft dormant (active=False) — propose; the ack ({idempotency_key, accept}) promotes/rejects it
acceptbooleanNoAccept or reject dormant state

Response (PatchDepartmentDraftApiResponse)

FieldTypeRequiredDescription
successbooleanYesWhether the draft save succeeded
draft_idstringYesUUID of the saved draft
idempotency_keystringNoIdempotency key for this draft operation
messagestringYesResult message
form_stateapp__infra__department__types__DraftFormStateNoServer-authoritative form state
Last updated on