See Holidays and days off in the manual.
List holidays
hr.holidays
Returns the holidays of the company’s country and the company’s own days off, sorted by date.
Create a day off
hr.holidays.write
Creates one company day off per call.
201 response: the day off (same format as the list) with recalculation_queued.
Edit a day off
hr.holidays.write
Send only the fields that change. Only company days off can be edited; a country holiday or an exclusion returns 404.
200 response: the updated day off with recalculation_queued.
Delete a day off or exclusion
hr.holidays.write
Deletes a company day off or an exclusion (exclusion_id). Country holidays are not deleted: they are excluded.
Exclude a country holiday
hr.holidays.write
{id} is a holiday of the company’s country (origin: country). That day is treated as a normal day for the company.
Behavior
- Idempotent: excluding the same holiday twice does not create another exclusion.
200 response: the country holiday with is_excluded: true, its exclusion_id and recalculation_queued.
Any change to holidays recalculates attendance for that date. Days included in processed or paid payrolls do not change.