Holidays
Action a Holiday
Update a holiday. You can use this to :
- Approve a pending holiday
- Decline a pending holiday
- Cancel a holiday
<strong>Note:</strong> This will raise a Webhook event if you have Webhooks configured.
<strong>Important:</strong> an action that is refused still returns <strong>200</strong>. Check approvalResult in the response body rather than relying on the status code. Its values are:
- Success — the action was applied.
- AlreadyActioned — the holiday has already been approved, declined or cancelled.
- DoesntExist — the holiday could not be found when the action was applied.
- NotAllowed — you are not allowed to perform that action on this holiday.
- UnknownError — the action failed, or no recognised holidayUpdateAction was supplied.
message carries a human readable version of the same thing.
post/api/holidays/{id}
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/{id}
- Auth: none declared
Path parameters
idstring required
The id of the holiday / a holiday token
Query parameters
holidayUpdateAction'Approve' | 'Decline' | 'Delete' | 'DeleteGroup'
- Approve
- Decline
- Delete
- DeleteGroup
The action you want to perform to the holiday
Request body
Response
The request was processed. Check approvalResult in the body — this is also returned when the action was refused.
Changes
No recorded changes to this operation across all 1 revision of this API.