Skip to content

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

NameTypeRequiredDescription
idintegerYes

ID of the leave request to reject.

Example: 34

Request body

Content type application/json.

FieldTypeRequiredDescription
reasonstringNo

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."}'
Loading