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

Parameters: cancel_booking
NameTypeDescription
request_id string required string Request id of the booking.
reason string string Optional reason that goes with the cancellation.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/timetastic/requests/request_8c41d2/booking/cancel \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("timetastic", "cancel_booking", {"request_id":"request_8c41d2"})
Node.js
const result = await cotlet.call('timetastic', 'cancel_booking', {"request_id":"request_8c41d2"});
CLI
cotlet call timetastic cancel_booking --data '{"request_id":"request_8c41d2"}'

Example response

JSON

{
  "request_id": "5129012",
  "employee": "Ana Torres",
  "leave_type": "Holiday",
  "from": "2026-12-21",
  "to": "2026-12-24",
  "status": "Cancelled",
  "cancelled_by": "Ana Torres"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.