Create a department
Header Parameters
Body Parameters
Show child attributes
Response
Department created.
Response Attributes
A single department resource (write response — no depth/memberCount).
Show child attributes
Validation failed — see examples for operation-specific codes.
Response Attributes
Show child attributes
Access token is missing or invalid.
Response Attributes
Show child attributes
Authenticated but not permitted — caller is not an admin/super-admin, or the LaunchDarkly flag public-acl-api-ekp-55221 is off.
Response Attributes
Show child attributes
parentDepartment unknown or in another tenant.
Response Attributes
Show child attributes
data.type ≠ department (per JSON:API spec).
Response Attributes
Show child attributes
Request Content-Type is not application/vnd.api+json. Required on POST / PATCH /v2/admin/departments (JSON:API parser).
Response Attributes
Show child attributes
Unexpected server error.