EaserixDocs
DevelopersAPI referenceCronCrunchTime off

Cancel the caller's pending request

Team workspaces only. The caller can cancel their own pending request. Someone else's request is 404. The days return to the balance. An approved request cannot be cancelled, and its days stay counted for the year.

View as Markdown
POST
/v1/time-off/requests/{id}/cancel
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/cancel"
{  "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"  }}