Requests

Decline a change of a request

Changed on

Decline the pending change of an approved request on behalf of the user who created the API token. Only the approvers of the change (or an admin) can do this. The request stays as it was and the requester gets the reason. Fails with 409 when the change is no longer pending or when revision does not match the request.

post/requests/{id}/changes/{changeId}/decline

Request

  • Base URL
    https://api.absentify.com/api/v1
  • URL
    https://api.absentify.com/api/v1/requests/{id}/changes/{changeId}/decline
  • Auth
    API key in header X-API-KEY

Path parameters

idstring uuid required
changeIdinteger required

Request body

decline_reasonstring required

The reason for declining the change. The request itself stays as it is.

revisioninteger

Revision you last saw (from GET /requests/{id} or the webhook). If the request was changed since, the call fails with 409 and nothing happens.

Response

Successful response

successboolean required
messagestring required

Changes