Reject leave request
POST/hr/leave/{id}/reject
Rejects a pending leave request and records the reason. The request status advances to 'rejected' and the employee is notified.
Request
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | ID of the leave request to reject. Example: |
Request body
Content type application/json.
| Field | Type | Required | Description |
|---|---|---|---|
reason | string | No | Explanation provided to the employee for the rejection. |
Example
{
"reason": "Insufficient leave balance."
}
Responses
302 Redirect after rejection
404 Leave request not found
Example request
curl -X POST "https://{tenant}.faciotech.net/api/v1/hr/leave/{id}/reject" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"reason": "Insufficient leave balance."}'