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 MarkdownAuthorization
bearer In: header
Path Parameters
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" }}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.
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.