English
cURL
curl --request POST \ --url https://api.absentify.com/api/v1/requests/{id}/decline \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "decline_reason": "<string>" }'
{ "success": true, "message": "<string>" }
Decline a pending request on behalf of the user who created the API token. The API automatically finds the next pending approval and declines it with the provided reason.
1
Successful response
Was this page helpful?