Add person limitations
This endpoint allows to create employee limitations for performing specific tasks.
POST /api/v1/business/{businessId}/employees/{employeeId}/locationLimitations
The URL must contain the business identifier (businessId) and the employee identifier (employeeId).
Below is an explanation of each field in the request body.
Mandatory fields are marked with an asterisk (*). |
Request body
JSON Analysis |
---|
Details
|
Request example
After analyzing the different fields, here is an example request:
POST /api/v1/business/BUSINESSID/employees/EMPLOYEEID/locationLimitations
{
"lag": 0,
"locationLimitations": [
{
"product": "0001-GENERAL",
"from": "2025-09-30",
"to": null,
"zone": "Z1",
"location": "01"
},
{
"product": "0001-GENERAL",
"from": "2025-10-15",
"to": "2025-10-25",
"zone": "Z1",
"location": "02"
}
]
}
If the request data is correct, the request will return a 200 OK
status and the limitations will be set for the employee in the specified tasks.
Considerations
If the product specified in the request body does not exist in the business, the request will return a 404 Not Found
error, with the message not exits.
If the external zone identifier does not match any zone in the product, the request will return an error indicating No zone found.
If the external task identifier does not match any task enabled for the specified product or zone, the request will return a 404 Not Found
error, with the message Location not found.
To visualize the limitations in the interface, the employee must already have the aptitude defined for that task. |