EaserixDocs
DevelopersAPI referenceCronCrunchTime off

Approve a time off request

Team workspaces only, owner or admin. The request must be pending. The allowance is checked again, so a policy lowered after the request was made can still refuse it. A holiday added over the dates can leave no working day, which is also refused.

View as Markdown
POST
/v1/time-off/requests/{id}/approve
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/time-off/requests/string/approve"
{  "request": {    "id": "string",    "ownerId": "string",    "policyId": "string",    "policyName": "string",    "startDate": "2019-08-24",    "endDate": "2019-08-24",    "dayCount": 0,    "status": "pending",    "note": "string",    "reviewNote": "string",    "reviewedBy": "string",    "reviewedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z"  }}