Calendar events
Events on the timeline: bookings, blocked periods or notes
The calendar event object
Attributes
iduuidUnique identifier
calendar_iduuid | nullIdentifier of the external calendar the event is imported from
created_atread-onlytimestamp with time zoneCreation timestamp
updated_atread-onlytimestamp with time zoneLast modification timestamp
cooldown_timeint32Number of days blocked after the event. For stays of bookings it follows the booked services and the unit, and is recomputed when those change
durationread-onlyint32Number of nights of the event, or days for units rented per day
end_datedateEnd date of the event
free_cancellation_daysint32 | nullFor stays of bookings: the unit's number of days before arrival until which guests could cancel for free when the stay was booked, or null without free cancellation. Set when the stay is created
ftstsvectorgenerated_titletextTitle of the event, generated from the unit name and the guest name
has_non_invoiced_itemsbooleanWhether the booking of the event has line items that are not on an invoice
has_open_paymentsbooleanWhether the booking of the event has payments that are due
notestextPrivate notes about the event
occupancyRecord<uuid, integer>Occupancy per capacity group
origintext | nullOrigin of the event
paddingread-onlyint32Deprecated: read-only copy of cooldown_time. Use cooldown_time and preparation_time
preparation_timeint32Number of days blocked before the event. For stays of bookings it follows the booked services and the unit, and is recomputed when those change
start_datedateStart date of the event
statusCalendarEventStatusStatus of the event
titletextTitle of the event
typeCalendarEventTypeType of the event
uidtextIdentifier of the event in the external calendar
Related resources
Embed related resources in the response with the select parameter, for example select=*,bookings!booking_id(*). Resources related through more than one column need the column as a hint, like table!column(*).
external_calendars(*)object | nullThe external calendar referenced by calendar_id.
organizations!organization_id(*)object | nullThe organization referenced by organization_id.
booking_details(*)arrayThe booking details referencing this calendar event through booking_details.calendar_event_id.
calendar_event_notes(*)arrayThe calendar event notes referencing this calendar event through calendar_event_notes.calendar_event_id.
line_items(*)arrayThe line items referencing this calendar event through line_items.event_id.
{
"id": "00000000-0000-0000-0000-000000000000",
"booking_id": "00000000-0000-0000-0000-000000000000",
"calendar_id": "00000000-0000-0000-0000-000000000000",
"creator_id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-11-30T11:02:01.147Z",
"updated_at": "2026-11-30T11:02:01.147Z",
"cooldown_time": 0,
"duration": 0,
"end_date": "2026-11-30",
"free_cancellation_days": 0,
"generated_title": "Summer cottage",
"has_non_invoiced_items": false,
"has_open_payments": false,
"notes": "A short description.",
"occupancy": {},
"origin": "",
"padding": 0,
"preparation_time": 0,
"start_date": "2026-11-30",
"status": "CONFIRMED",
"title": "Summer cottage",
"type": "booking",
"uid": ""
}curl "https://api.bookingmood.com/v1/calendar_events?limit=10&select=*,bookings!booking_id(*),external_calendars(*)" \
-H "Authorization: Bearer YOUR_API_KEY"List calendar events
Requiresbookings:read
Filters
idFilter<uuid>Unique identifier
calendar_idFilter<uuid | null>Identifier of the external calendar the event is imported from
created_atFilter<timestamp with time zone>Creation timestamp
updated_atFilter<timestamp with time zone>Last modification timestamp
cooldown_timeFilter<int32>Number of days blocked after the event. For stays of bookings it follows the booked services and the unit, and is recomputed when those change
durationFilter<int32>Number of nights of the event, or days for units rented per day
end_dateFilter<date>End date of the event
free_cancellation_daysFilter<int32 | null>For stays of bookings: the unit's number of days before arrival until which guests could cancel for free when the stay was booked, or null without free cancellation. Set when the stay is created
ftsFilter<tsvector>generated_titleFilter<text>Title of the event, generated from the unit name and the guest name
has_non_invoiced_itemsFilter<boolean>Whether the booking of the event has line items that are not on an invoice
has_open_paymentsFilter<boolean>Whether the booking of the event has payments that are due
notesFilter<text>Private notes about the event
occupancyFilter<Record<uuid, integer>>Occupancy per capacity group
originFilter<text | null>Origin of the event
paddingFilter<int32>Deprecated: read-only copy of cooldown_time. Use cooldown_time and preparation_time
preparation_timeFilter<int32>Number of days blocked before the event. For stays of bookings it follows the booked services and the unit, and is recomputed when those change
start_dateFilter<date>Start date of the event
statusFilter<CalendarEventStatus>Status of the event
titleFilter<text>Title of the event
typeFilter<CalendarEventType>Type of the event
uidFilter<text>Identifier of the event in the external calendar
Responses
200A list of calendar events with the selected columns
206Partial Content
400The request is malformed, for example an unknown column or an invalid filter.
401The API key is missing or invalid.
403The API key or access token doesn't have the scope this request needs.
429The API key made more requests per minute than its rate limit allows. Retry after the number of seconds in the `Retry-After` header.
code, message, details and hint. See the introduction for more on errors.curl "https://api.bookingmood.com/v1/calendar_events?select=*&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"[
{
"id": "00000000-0000-0000-0000-000000000000",
"booking_id": "00000000-0000-0000-0000-000000000000",
"calendar_id": "00000000-0000-0000-0000-000000000000",
"creator_id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-11-30T11:02:01.147Z",
"updated_at": "2026-11-30T11:02:01.147Z",
"cooldown_time": 0,
"duration": 0,
"end_date": "2026-11-30",
"free_cancellation_days": 0,
"generated_title": "Summer cottage",
"has_non_invoiced_items": false,
"has_open_payments": false,
"notes": "A short description.",
"occupancy": {},
"origin": "",
"padding": 0,
"preparation_time": 0,
"start_date": "2026-11-30",
"status": "CONFIRMED",
"title": "Summer cottage",
"type": "booking",
"uid": ""
}
]Create calendar events
Requiresbookings:write
Body
Partial<CalendarEvent> | Array<Partial<CalendarEvent>>Read-only attributes are set by the database and can't be written.
Responses
201The newly created calendar events with the selected columns
400The request is malformed, for example an unknown column, an invalid filter or an invalid body.
401The API key is missing or invalid.
403The API key or access token doesn't have the scope this request needs, or no permission for this change, for example when writing rows of another organization.
409The change conflicts with existing data, for example a duplicate key or a reference to a row that does not exist.
429The API key made more requests per minute than its rate limit allows. Retry after the number of seconds in the `Retry-After` header.
code, message, details and hint. See the introduction for more on errors.curl "https://api.bookingmood.com/v1/calendar_events" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"organization_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"cooldown_time": 0,
"end_date": "2026-11-30",
"generated_title": "Summer cottage",
"has_non_invoiced_items": false,
"has_open_payments": false,
"notes": "A short description.",
"occupancy": {},
"preparation_time": 0,
"start_date": "2026-11-30",
"status": "CONFIRMED",
"title": "Summer cottage",
"type": "booking",
"uid": ""
}'[
{
"id": "00000000-0000-0000-0000-000000000000",
"booking_id": "00000000-0000-0000-0000-000000000000",
"calendar_id": "00000000-0000-0000-0000-000000000000",
"creator_id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-11-30T11:02:01.147Z",
"updated_at": "2026-11-30T11:02:01.147Z",
"cooldown_time": 0,
"duration": 0,
"end_date": "2026-11-30",
"free_cancellation_days": 0,
"generated_title": "Summer cottage",
"has_non_invoiced_items": false,
"has_open_payments": false,
"notes": "A short description.",
"occupancy": {},
"origin": "",
"padding": 0,
"preparation_time": 0,
"start_date": "2026-11-30",
"status": "CONFIRMED",
"title": "Summer cottage",
"type": "booking",
"uid": ""
}
]Delete calendar events
Requiresbookings:write
Filters
Without filters, this request deletes all calendar events you have access to. Always filter on at least one column, e.g. id=eq.{id}.
idFilter<uuid>Unique identifier
calendar_idFilter<uuid | null>Identifier of the external calendar the event is imported from
created_atFilter<timestamp with time zone>Creation timestamp
updated_atFilter<timestamp with time zone>Last modification timestamp
cooldown_timeFilter<int32>Number of days blocked after the event. For stays of bookings it follows the booked services and the unit, and is recomputed when those change
durationFilter<int32>Number of nights of the event, or days for units rented per day
end_dateFilter<date>End date of the event
free_cancellation_daysFilter<int32 | null>For stays of bookings: the unit's number of days before arrival until which guests could cancel for free when the stay was booked, or null without free cancellation. Set when the stay is created
ftsFilter<tsvector>generated_titleFilter<text>Title of the event, generated from the unit name and the guest name
has_non_invoiced_itemsFilter<boolean>Whether the booking of the event has line items that are not on an invoice
has_open_paymentsFilter<boolean>Whether the booking of the event has payments that are due
notesFilter<text>Private notes about the event
occupancyFilter<Record<uuid, integer>>Occupancy per capacity group
originFilter<text | null>Origin of the event
paddingFilter<int32>Deprecated: read-only copy of cooldown_time. Use cooldown_time and preparation_time
preparation_timeFilter<int32>Number of days blocked before the event. For stays of bookings it follows the booked services and the unit, and is recomputed when those change
start_dateFilter<date>Start date of the event
statusFilter<CalendarEventStatus>Status of the event
titleFilter<text>Title of the event
typeFilter<CalendarEventType>Type of the event
uidFilter<text>Identifier of the event in the external calendar
Responses
200The deleted calendar events with the selected columns. Returns 204 without a body when sending the header Prefer: return=minimal.
400The request is malformed, for example an unknown column or an invalid filter.
401The API key is missing or invalid.
403The API key or access token doesn't have the scope this request needs, or no permission for this change, for example when writing rows of another organization.
429The API key made more requests per minute than its rate limit allows. Retry after the number of seconds in the `Retry-After` header.
code, message, details and hint. See the introduction for more on errors.curl -X DELETE "https://api.bookingmood.com/v1/calendar_events?id=eq.00000000-0000-0000-0000-000000000000" \
-H "Authorization: Bearer YOUR_API_KEY"[
{
"id": "00000000-0000-0000-0000-000000000000",
"booking_id": "00000000-0000-0000-0000-000000000000",
"calendar_id": "00000000-0000-0000-0000-000000000000",
"creator_id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-11-30T11:02:01.147Z",
"updated_at": "2026-11-30T11:02:01.147Z",
"cooldown_time": 0,
"duration": 0,
"end_date": "2026-11-30",
"free_cancellation_days": 0,
"generated_title": "Summer cottage",
"has_non_invoiced_items": false,
"has_open_payments": false,
"notes": "A short description.",
"occupancy": {},
"origin": "",
"padding": 0,
"preparation_time": 0,
"start_date": "2026-11-30",
"status": "CONFIRMED",
"title": "Summer cottage",
"type": "booking",
"uid": ""
}
]Update calendar events
Requiresbookings:write
Filters
Without filters, this request updates all calendar events you have access to. Always filter on at least one column, e.g. id=eq.{id}.
idFilter<uuid>Unique identifier
calendar_idFilter<uuid | null>Identifier of the external calendar the event is imported from
created_atFilter<timestamp with time zone>Creation timestamp
updated_atFilter<timestamp with time zone>Last modification timestamp
cooldown_timeFilter<int32>Number of days blocked after the event. For stays of bookings it follows the booked services and the unit, and is recomputed when those change
durationFilter<int32>Number of nights of the event, or days for units rented per day
end_dateFilter<date>End date of the event
free_cancellation_daysFilter<int32 | null>For stays of bookings: the unit's number of days before arrival until which guests could cancel for free when the stay was booked, or null without free cancellation. Set when the stay is created
ftsFilter<tsvector>generated_titleFilter<text>Title of the event, generated from the unit name and the guest name
has_non_invoiced_itemsFilter<boolean>Whether the booking of the event has line items that are not on an invoice
has_open_paymentsFilter<boolean>Whether the booking of the event has payments that are due
notesFilter<text>Private notes about the event
occupancyFilter<Record<uuid, integer>>Occupancy per capacity group
originFilter<text | null>Origin of the event
paddingFilter<int32>Deprecated: read-only copy of cooldown_time. Use cooldown_time and preparation_time
preparation_timeFilter<int32>Number of days blocked before the event. For stays of bookings it follows the booked services and the unit, and is recomputed when those change
start_dateFilter<date>Start date of the event
statusFilter<CalendarEventStatus>Status of the event
titleFilter<text>Title of the event
typeFilter<CalendarEventType>Type of the event
uidFilter<text>Identifier of the event in the external calendar
Body
Partial<CalendarEvent>Read-only attributes are set by the database and can't be written.
Responses
200The updated calendar events with the selected columns. Returns 204 without a body when sending the header Prefer: return=minimal.
400The request is malformed, for example an unknown column, an invalid filter or an invalid body.
401The API key is missing or invalid.
403The API key or access token doesn't have the scope this request needs, or no permission for this change, for example when writing rows of another organization.
409The change conflicts with existing data, for example a duplicate key or a reference to a row that does not exist.
429The API key made more requests per minute than its rate limit allows. Retry after the number of seconds in the `Retry-After` header.
code, message, details and hint. See the introduction for more on errors.curl -X PATCH "https://api.bookingmood.com/v1/calendar_events?id=eq.00000000-0000-0000-0000-000000000000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "cooldown_time": 0 }'[
{
"id": "00000000-0000-0000-0000-000000000000",
"booking_id": "00000000-0000-0000-0000-000000000000",
"calendar_id": "00000000-0000-0000-0000-000000000000",
"creator_id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-11-30T11:02:01.147Z",
"updated_at": "2026-11-30T11:02:01.147Z",
"cooldown_time": 0,
"duration": 0,
"end_date": "2026-11-30",
"free_cancellation_days": 0,
"generated_title": "Summer cottage",
"has_non_invoiced_items": false,
"has_open_payments": false,
"notes": "A short description.",
"occupancy": {},
"origin": "",
"padding": 0,
"preparation_time": 0,
"start_date": "2026-11-30",
"status": "CONFIRMED",
"title": "Summer cottage",
"type": "booking",
"uid": ""
}
]