Cancel a booking
Cancel a booking with an optional reason.
POST https://cotlet.dev/api/v1/timetastic/requests/{request_id}/booking/cancel
write Confirm
Returns the booking with the status Cancelled. Anyone can cancel their own leave from tomorrow on; leave for today or earlier needs the approver or an admin, or the call fails with APP_PERMISSION_DENIED. The approver gets an email. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| request_id string required | string | Request id of the booking. |
| reason string | string | Optional reason that goes with the cancellation. |
Request
curl -X POST https://cotlet.dev/api/v1/timetastic/requests/request_8c41d2/booking/cancel \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("timetastic", "cancel_booking", {"request_id":"request_8c41d2"}) const result = await cotlet.call('timetastic', 'cancel_booking', {"request_id":"request_8c41d2"}); cotlet call timetastic cancel_booking --data '{"request_id":"request_8c41d2"}' Example response
{
"request_id": "5129012",
"employee": "Ana Torres",
"leave_type": "Holiday",
"from": "2026-12-21",
"to": "2026-12-24",
"status": "Cancelled",
"cancelled_by": "Ana Torres"
}