EaserixDocs
DevelopersAPI referenceCronCrunchTime off

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 Markdown
POST
/v1/time-off/holidays
AuthorizationBearer <token>

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  }}