Skip to Content

POST /cohort/draft

Patch Cohort Draft

Patch cohort draft — composable infra architecture.

Request Body (PatchCohortDraftApiRequest)

FieldTypeRequiredDescription
draft_idstringNoExisting draft UUID to patch
input_draft_idstringNoLegacy alias for existing draft UUID to patch
namestringNoName value to create a resource
name_idstringNoExisting name resource UUID
descriptionstringNoDescription value to create a resource
description_idstringNoExisting description resource UUID
flag_idsstring[]NoSelected flag option UUIDs — canonical; server derives semantics by flag type/value
activebooleanNoDenormalized cohort_active flag state; resolved to a flag_ids entry server-side
department_idsstring[]NoDepartment UUIDs
departmentsstring[]NoDepartment names to resolve
simulation_idsstring[]NoSimulation UUIDs
simulationsstring[]NoSimulation names to resolve
profile_idsstring[]NoProfile UUIDs
profilesstring[]NoProfile names to resolve
simulation_position_idsstring[]NoExisting simulation position UUIDs
simulation_positionsDraftSimulationPositionValue[]NoSimulation position values to create
simulation_availability_idsstring[]NoExisting simulation availability UUIDs
simulation_availabilityDraftSimulationAvailabilityValue[]NoSimulation availability values to create
profile_persona_idsstring[]NoExisting profile persona UUIDs
profile_personasDraftProfilePersonaValue[]NoProfile persona values to create
pending_idsstring[]NoResource IDs to keep as pending where supported by the tool layer
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 draft state

Response (PatchCohortDraftApiResponse)

FieldTypeRequiredDescription
successbooleanYesWhether the operation succeeded
draft_idstringYesDraft UUID
idempotency_keystringYesIdempotency key for this draft operation
messagestringYesHuman-readable result message
form_stateapp__infra__cohort__types__DraftFormStateNoServer-authoritative form state
Last updated on