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 MarkdownAuthorization
bearer In: header
Query Parameters
datedateResponse 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 } ]}Cancel the caller's pending request
Team workspaces only. The caller can cancel their own pending request. Someone else's request is 404. The days return to the balance. An approved request cannot be cancelled, and its days stay counted for the year.
Monitoring settings
The caller's capture settings. Defaults to everything disabled with a 300s interval when never configured.