Admin-only endpoint to set a user’s department by department ID.
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
| Content-Type | string | Yes | application/json |
| Field | Type | Required | Description |
|---|---|---|---|
| payload | object | Yes | Update payload |
| payload.userId | string | Yes | User ID to update |
| payload.departmentId | string | Yes | New department ID |