DevelopersAPI referenceCronCrunchTime off
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.
View as MarkdownAuthorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
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
application/json
curl -X PATCH "https://example.com/v1/time-off/policies/string" \ -H "Content-Type: application/json" \ -d '{}'{ "policy": { "id": "string", "name": "string", "daysPerYear": 0, "archived": true }}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.
List holiday definitions
Team workspaces only. The stored calendar, ordered by date. Yearly holidays are one row, not one row per year. At most 400.