Skip to Content

POST /department/duplicate

Duplicate Department

Duplicate a department — composable infra architecture.

Request Body (DuplicateDepartmentApiRequest)

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

Response (DuplicateDepartmentApiResponse)

FieldTypeRequiredDescription
successbooleanYesWhether the duplication succeeded
department_idstringYesUUID of the newly created department
messagestringYesResult message
idempotency_keystringNoIdempotency key echoed back for client correlation
departmentsListDepartmentApiDepartment[]NoHydrated row for the newly-created duplicate department (mirrors /department/search shape)
Last updated on