DevelopersAPI referenceCronCrunchTime off
List time off policies
Team workspaces only. Active policies, ordered by name. An owner or admin also receives archived policies. At most 100.
View as MarkdownAuthorization
bearer AuthorizationBearer <token>
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/time-off/policies"{ "policies": [ { "id": "string", "name": "string", "daysPerYear": 0, "archived": true } ]}Apply a template to an empty week
Places the template's project and description rows on weekStart. The week must have no time and no activity rows. A submitted or approved week is 409. Hours are not copied. Activities whose project or task is no longer available are counted in unavailable and not placed. When none can be placed, the call is 400 and the week is unchanged.
Create a time off policy
Team workspaces only, owner or admin. daysPerYear is the allowance for each calendar year, from 0 to 366. Names are unique among active policies, ignoring case.