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.
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"
}Was this page helpful?