Core resources
Administration
Booking flow
Calendars which are being imported. Useful for syncing bookings with services like Airbnb or booking.com.
id
uuid
Unique identifier
created_at
timestamp with time zone
Creation timestamp
updated_at
timestamp with time zone | null
Timestamp at which the calendar last received new events
active
boolean
Whether the external calendar is active
error
text | null
Error message if the calendar could not be synced
ical_url
text
URL of the iCal feed
last_synced
timestamp with time zone | null
Timestamp at which the calendar was last synced
name
text | null
Name of the calendar
sync_requested_at
timestamp with time zone | null
Timestamp at which a sync was last requested
time_offset
integer
{"id": "00000000-0000-0000-0000-000000000000","product_id": "00000000-0000-0000-0000-000000000000","created_at": "2024-09-08T01:30:52.536Z","updated_at": "2024-09-08T01:30:52.536Z","active": true,"error": "","ical_url": "","last_synced": "2024-09-08T01:30:52.536Z","name": "","sync_requested_at": "2024-09-08T01:30:52.536Z","time_offset": 0}
id
Filter<uuid>
Unique identifier
product_id
Filter<uuid>
Identifier of the product this calendar is related to
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Timestamp at which the calendar last received new events
active
Filter<boolean>
Whether the external calendar is active
error
Filter<text>
Error message if the calendar could not be synced
ical_url
Filter<text>
URL of the iCal feed
last_synced
Filter<timestamp with time zone>
Timestamp at which the calendar was last synced
name
Filter<text>
Name of the calendar
sync_requested_at
Filter<timestamp with time zone>
Timestamp at which a sync was last requested
time_offset
Filter<integer>
200
A list of external calendars with the selected columns
206
Partial Content
GET
/external_calendars
curl -X GET "https://api.bookingmood.com/v1/external_calendars?select=*" \ -H "Authorization: Bearer YOUR_API_KEY"
Partial<ExternalCalendar>
| Array<Partial<ExternalCalendar>>
201
The newly created external calendars with the selected columns
POST
/external_calendars
curl -X POST "https://api.bookingmood.com/v1/external_calendars" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '[]'
id
Filter<uuid>
Unique identifier
product_id
Filter<uuid>
Identifier of the product this calendar is related to
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Timestamp at which the calendar last received new events
active
Filter<boolean>
Whether the external calendar is active
error
Filter<text>
Error message if the calendar could not be synced
ical_url
Filter<text>
URL of the iCal feed
last_synced
Filter<timestamp with time zone>
Timestamp at which the calendar was last synced
name
Filter<text>
Name of the calendar
sync_requested_at
Filter<timestamp with time zone>
Timestamp at which a sync was last requested
time_offset
Filter<integer>
204
The deleted external calendars with the selected columns
DELETE
/external_calendars
curl -X DELETE "https://api.bookingmood.com/v1/external_calendars" \ -H "Authorization: Bearer YOUR_API_KEY"
id
Filter<uuid>
Unique identifier
product_id
Filter<uuid>
Identifier of the product this calendar is related to
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Timestamp at which the calendar last received new events
active
Filter<boolean>
Whether the external calendar is active
error
Filter<text>
Error message if the calendar could not be synced
ical_url
Filter<text>
URL of the iCal feed
last_synced
Filter<timestamp with time zone>
Timestamp at which the calendar was last synced
name
Filter<text>
Name of the calendar
sync_requested_at
Filter<timestamp with time zone>
Timestamp at which a sync was last requested
time_offset
Filter<integer>
Partial<ExternalCalendar>
204
The updated external calendars with the selected columns
PATCH
/external_calendars
curl -X PATCH "https://api.bookingmood.com/v1/external_calendars" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{}'