EaserixDocs
DevelopersAPI referenceCronCrunchTime off

Reject a time off request

Team workspaces only, owner or admin. The request must be pending. note is required. The days return to the balance.

View as Markdown
POST
/v1/time-off/requests/{id}/reject
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 POST "https://example.com/v1/time-off/requests/string/reject" \  -H "Content-Type: application/json" \  -d '{    "note": "string"  }'
{  "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"  }}