Requests

Approve a change of a request

Changed on

Approve 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. When the last needed approval is in, the change is applied, the request gets the next revision and change.status becomes applied; otherwise it stays pending. Fails with 409 when the change is no longer pending or when revision does not match the request, and with 400 when the allowance no longer covers the change.

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

Request

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

Path parameters

idstring uuid required
changeIdinteger required

Request body

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