EaserixDocs
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 Markdown
POST
/v1/time-off/policies
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  }}