Theme switcher

Create a department

Header Parameters

Authorizationstring

Body Parameters

dataobject Required

Response

201
Object

Department created.

Response Attributes

dataobject Required

A single department resource (write response — no depth/memberCount).

400
Object

Validation failed — see examples for operation-specific codes.

Response Attributes

errorsarray Required
Min items
1
401
Object

Access token is missing or invalid.

Response Attributes

errorsarray Required
Min items
1
403
Object

Authenticated but not permitted — caller is not an admin/super-admin, or the LaunchDarkly flag public-acl-api-ekp-55221 is off.

Response Attributes

errorsarray Required
Min items
1
404
Object

parentDepartment unknown or in another tenant.

Response Attributes

errorsarray Required
Min items
1
409
Object

data.type ≠ department (per JSON:API spec).

Response Attributes

errorsarray Required
Min items
1
415
Object

Request Content-Type is not application/vnd.api+json. Required on POST / PATCH /v2/admin/departments (JSON:API parser).

Response Attributes

errorsarray Required
Min items
1
500
Object

Unexpected server error.

Response Attributes

errorsarray Required
Min items
1
Was this section helpful?

POST

/

Select
1

Response

Was this section helpful?