Update department assignments
Update member/agent assignments (Enterprise/Contact only). IDs must belong to workspace; invalid UUID or not in workspace returns 422.
Path parameters
id
Department UUID
Headers
Authorization
Bearer {access_token}
X-Workspace-Id
Workspace UUID
Request
addMemberIds, removeMemberIds, addAgentIds, removeAgentIds
addAgentIds
addMemberIds
removeAgentIds
removeMemberIds
Response
data: departmentId, members: {added,removed,total}, agents: {added,removed,total}
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error