Sync a department's agents
PUT/api/departments/:departmentId/agents
Replaces the department's agent set with the supplied user ids (drives department-aware auto-routing). Requires supervisor or admin. Each id must be a staff member of the current tenant.
Request
Responses
- 200
- 401
- 403
- 404
- 422
The updated agent and lead id lists.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
Authenticated but not allowed.
Resource not found (or not visible to the current tenant).
The request failed validation.