# Holidays

Manage workspace holidays (Time Off → Holidays)

 - [GET /holidays](https://api-docs.webwork-tracker.com/api/holidays/getholidays.md): The holidays of Time Off → Holidays that the caller reads, paginated. `applies_to` says who a holiday is for: `workspace` (everyone), `team` (its `teams`) or `custom` (its `members`). A yearly holiday
 - [POST /holidays](https://api-docs.webwork-tracker.com/api/holidays/createholiday.md): Create a holiday, as Time Off → Holidays → Add holiday does, audit log entry included. **`applies_to` picks who it is for: `workspace` (everyone, the default), `team` with `team_ids`, or `custom` with
 - [GET /holidays/{holiday_id}](https://api-docs.webwork-tracker.com/api/holidays/getholiday.md): One holiday, in the list's shape. A holiday outside the caller's list answers 404. **Access by role**, as on the Holidays page: the Owner and an Executive Manager read every holiday; a Team Manager th
 - [PUT /holidays/{holiday_id}](https://api-docs.webwork-tracker.com/api/holidays/updateholiday.md): PARTIAL: only the fields sent change; at least one is required (422 otherwise). `applies_to` moves the holiday between `workspace`, `team` and `custom` and clears the list it no longer uses; `team_ids
 - [DELETE /holidays/{holiday_id}](https://api-docs.webwork-tracker.com/api/holidays/deleteholiday.md): Delete a holiday permanently, as on the dashboard: there is no trash to restore from. A day off it gave members stops counting. **Access by role**: the Owner and an Executive Manager delete any holida
