Delete Time Off Request

Deletes a time off request of the organization. The request stops counting as vacations/leave and the time it had consumed is released back to the user’s balance. A request that no longer exists cannot be deleted.

Authentication

Api-Keystring

API key of the organization. Always sent together with the Secret-Access header.

Path parameters

organization_slugstringRequired
request_idintegerRequired

Headers

Secret-AccessstringRequired

Response

Time off request deleted
successboolean
True when the request was deleted.
messagestring
Human readable result of the deletion.
codestring

Result code of the operation, namespaced by section — not an HTTP status. The reason of a failed deletion travels in the error payload instead.

datetimestring
Datetime of the API in ISO Format
dataobject
Identification of the deleted time off request.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error