Cancel bookings or reopen a day
bookings_removeCancel bookings or reopen a day. type booking: cancel one booking by its booking_id; the seat is free again and the person is notified. type bookings_of_day: cancel every booking of one day on a calendar and close that day, each person being notified; bookings_to_cancel is required, the number of bookings bookings_add reported for that day, and nothing is cancelled when the day holds another number. type closing_day: remove a closing day by its closing_day_id, so the day can be booked again; the bookings cancelled when it was closed do not come back. On the calendar of the app's default owner, a closing day may apply to every calendar of the app. A cancellation cannot be undone. One gesture per call. The answer confirms what was cancelled or reopened; a refusal says why and nothing changes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>"
},
"name": "bookings_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | Type bookings_of_day, required: the day whose bookings are cancelled, as YYYY-MM-DD. | |
| type | Yes | What to remove: one booking, every booking of a day (the day is then closed), or a closing day. | |
| booking_id | No | Type booking, required: the booking to cancel (the id of an attendee in a session read with bookings_get). | |
| calendar_id | No | Type bookings_of_day and closing_day, required: the calendar. | |
| closing_day_id | No | Type closing_day, required: the closing day to remove, read with bookings_get (type closing_day). | |
| bookings_to_cancel | No | Type bookings_of_day, required: how many bookings that day holds, as bookings_add (type closing_day) reported it in bookings_to_cancel. It proves the list was read: when the day holds another number, nothing is cancelled and the answer gives the current list. |