Requests
Decline a request
Changed onDecline 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. This acts on the request approvers only and never on a change request: to decide a change of an approved request use POST /requests/{id}/changes/{changeId}/decline.
post/requests/{id}/decline
Request
- Base URLhttps://api.absentify.com/api/v1
- URLhttps://api.absentify.com/api/v1/requests/{id}/decline
- AuthAPI key in header X-API-KEY
Path parameters
idstring uuid required
Request body
Response
Successful response
Changes
- info
added the new optional request property
- info
- warning
changed the pattern of the
pathrequest parameteridfrom^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$to^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
- warning