DevelopersAPI referenceCronCrunchTime off
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.
View as MarkdownAuthorization
bearer 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/policies" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "daysPerYear": 0 }'{ "policy": { "id": "string", "name": "string", "daysPerYear": 0, "archived": true }}List time off policies
Team workspaces only. Active policies, ordered by name. An owner or admin also receives archived policies. At most 100.
Update a time off policy
Team workspaces only, owner or admin. Archived policies keep their requests and accept no new ones. A missing policy in this workspace is 404.