Theme switcher

Update a department (config only)

Header Parameters

Authorizationstring

Path Parameters

departmentIdstring Required

Stable department ID. Unchanged by rename or reparent.

Body Parameters

dataobject Required

Response

200
Object

Department updated.

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

URL {departmentId} or body parentDepartment references a department that is not visible to this caller (unknown, or in another tenant).

Response Attributes

errorsarray Required
Min items
1
409
Object

data.type does not match this collection's resource type (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?

PATCH

/

Select
1

Response

Was this section helpful?