EaserixDocs
DevelopersAPI referenceCronCrunchTime off

Holidays, the caller's time off, and balances for a window

Team workspaces only. from and to are inclusive YYYY-MM-DD and can cover at most a year. holidays are the calendar expanded into the window, including yearly repeats. A one-off holiday on a date wins over a yearly one. timeOff is the caller's pending and approved requests, one object per calendar day in the window, and never another member's. balances are the caller's active policies for each calendar year the window touches. Remaining days can be negative when an allowance was lowered after time was approved.

View as Markdown
GET
/v1/time-off/coverage
AuthorizationBearer <token>

In: header

Query Parameters

from*string
Formatdate
to*string
Formatdate

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/time-off/coverage?from=2019-08-24&to=2019-08-24"
{  "holidays": [    {      "date": "2019-08-24",      "name": "string"    }  ],  "timeOff": [    {      "date": "2019-08-24",      "policyName": "string",      "status": "pending"    }  ],  "balances": [    {      "policyId": "string",      "name": "string",      "year": 0,      "daysPerYear": 0,      "usedDays": 0,      "pendingDays": 0,      "remainingDays": 0    }  ]}