cURL
curl --request POST \ --url https://{host}/api/v3/leaveRequests/{id}/approvals \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "approved": false, "comment": "your presence is required at the working meeting" } '
{ "Status": 401, "Message": "Unauthorized" }
Approve or deny a single Leave Request by its unique identifier
Only the Leave Requests pending approval can be approved or denied.
A comment is required to deny a Leave Request.
API key. Value must be formatted like so: lucca application={api_key}.
lucca application={api_key}
ID of the leave-request.
OK
Was this page helpful?