Skip to Content

POST /department/create

Create Department

Create departments using composable infra architecture.

Request Body (CreateDepartmentApiRequest)

FieldTypeRequiredDescription
departmentsCreateDepartmentItem[]YesList of departments to create
idempotency_keystringNoOperation key for ack — promotes or rejects a dormant create
softbooleanNoStage the create dormant (active=False) — propose; the ack ({idempotency_key, accept}) promotes/rejects it
acceptbooleanNoAccept (promote) or reject dormant state. Only meaningful with idempotency_key

Response (CreateDepartmentApiResponse)

FieldTypeRequiredDescription
resultsDepartmentResultItem[]YesPer-item creation results
idempotency_keystringNoIdempotency key echoed back for client correlation
departmentsListDepartmentApiDepartment[]NoHydrated rows for the successfully-created departments (mirrors /department/search shape)
Last updated on