Admin-only endpoint to add multiple users to a department with a specific role.
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
| Content-Type | string | Yes | application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| departmentId | string | Yes | Department ID to add users to |
| Field | Type | Required | Description |
|---|---|---|---|
| userIds | array | Yes | List of user IDs to add to department |
| role | string | Yes | Role to assign to users in department |
| Role | Description | Permissions |
|---|---|---|
| manager | Department manager | Full department access |
| supervisor | Team supervisor | Team management access |
| agent | Regular department member | Standard department access |
| admin | Department administrator | Administrative access |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the department