Requests

Approve a request as a representative

Changed on

Approve a request as a representative/substitute on behalf of the user who created the API token. The API automatically finds the pending representative approval.

post/requests/{id}/approve_representative

Request

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

Path parameters

idstring uuid 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

    • info

      added optional request body

    • warning

      changed the pattern of the path request parameter id from ^([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})$