Remove employee incidences

This endpoint allows removing all incidences associated with an employee within a defined time period.

DELETE /api/v1/business/{businessId}/employees/{employeeId}/incidences?from={yyyy-MM-dd}&to={yyyy-MM-dd}

If the data included in the request is correct —both the businessId and the employeeId—, the incidences recorded for that employee will be removed.

Considerations

If the request is correct but there are no incidences to remove in the indicated period, the response will be 200 OK with no body.

Error codes

In addition to the common errors, this endpoint can return the following codes:

Code Message Description

404 Not Found

Could not find employee with id […​]

The indicated employeeId does not exist in the business.