put https://api.accountabilityone.com/v1/Employees//OfficeRestrictions
Update Employee Office Restrictions
This API endpoint allows you to update the office restrictions for an existing employee in the system. By making a request to this endpoint, you can specify which offices an employee is restricted to.
To update an employee's office restrictions, send a request to this endpoint with the necessary parameters and data in the request body. The required parameters include the employee's ID and the IDs of the offices to which the employee is restricted. If the list is empty, the employee is not restricted to any office.
Path Parameter
Parameter | Description |
---|---|
id | The ID of the employee whose office restrictions are being updated. Body Parameters |
Body Parameters
Parameter | Description |
---|---|
offices | The IDs of the offices this employee is restricted to. When it is empty, the employee is not restricted to any office. |
Example Request
URL: https://{baseURL}/v1/Employees/{id}/OfficeRestrictions
{
"offices": [1, 2, 3]
}