Request a Holiday.
Use this to submit a leave request to Timetastic. Depending on your authorisation, you can book for yourself, any other user at your organisation, your department, or the entire organisation.
<strong>Note:</strong> This will raise a Webhook event if you have Webhooks configured.
<strong>Important:</strong> a booking that is refused still returns <strong>200</strong>. Always check success in the response body rather than relying on the status code. When success is false, response explains why. Reasons include: the dates contain no working days for that user, the request is zero length, the end date is before the start date, the user is already off for some of those dates, the user has insufficient allowance (or insufficient accrued allowance), the leave type is not active or its limit has been exceeded, the dates fall before the user's start date or after their end date, the dates are too far in the future, the leave year's allowance has not been created yet, a maximum-off limit would be breached, or the dates are locked.
Three of those refusals can be retried with an override, and are flagged separately so you can prompt for confirmation. Resubmit with the matching request field set to book anyway — each one requires the appropriate permission:
- overrideRequired (a maximum-off limit) → resubmit with override
- overrideLockedDateRequired (a locked date) → resubmit with overrideLockedDays
- overrideAccruedAllowanceRequired (accrued allowance) → resubmit with overrideAccruedAllowance
When booking for a department or the whole organisation, rejections indicates that some users in the group could not be booked; response summarises which.
Request
- Base URL: https://app.timetastic.co.uk (the document declares no server; this is the origin it was published from)
- URL: https://app.timetastic.co.uk/api/holidays
- Auth: none declared
Request body
Response
The request was processed. Check success in the body — this is also returned when the booking was refused.
Changes
No recorded changes to this operation across all 1 revision of this API.