Admin-only endpoint to assign a user as the manager of a department.
| 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 assign manager to |
| Field | Type | Required | Description |
|---|---|---|---|
| userId | string | Yes | User ID to assign as department manager |
/department/add-users to add users to department first/user/update-department-role for other role assignments/department/list to verify current assignmentsBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the department
User ID of the manager to assign
"64ef3c29f9a1c27e1b2c3b5e"