Add a holiday
Team workspaces only, owner or admin. date is YYYY-MM-DD. repeatsYearly uses that month and day every year. A yearly holiday blocks any other holiday on that month and day. Two one-off holidays can share a month and day when the dates differ. The same date cannot be stored twice.
View as MarkdownAuthorization
bearer In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/time-off/holidays" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "date": "2019-08-24" }'{ "holiday": { "id": "string", "name": "string", "date": "2019-08-24", "repeatsYearly": true }}List holiday definitions
Team workspaces only. The stored calendar, ordered by date. Yearly holidays are one row, not one row per year. At most 400.
Remove a holiday
Team workspaces only, owner or admin. Working-day counts are computed from the calendar as it stands, so removing a holiday can increase the days a request uses.