A BookableArea is a physical area at a site (e.g. cabana, hot
tub, treatment pod) that customers reserve via an
AreaBookingType. Each area has a capacity and an availability
schedule made up of AvailabilityRules.
The AvailabilityRules currently configured on this area.
These determine when the area is bookable. Manage them via
the /shop/bookable-areas/{bookableAreaId}/availability-rules
endpoints.
Returns a paginated list of BookableAreas at the given site,
ordered by their order field then by name. Use this to populate
a settings dashboard or a calendar resource picker.
Requires the RESERVATIONS_VIEW permission on the site.
Replaces the display order of the site's BookableAreas. The
order of area_ids in the body is the new order — element 0
becomes order=0, element 1 becomes order=1, and so on.
Requires the SETTINGS_MANAGE permission on the site.
Updates a BookableArea. The validator enforces the same shape
as on create — name and capacity are required. Sending fewer
fields than that returns 422.
Requires the SETTINGS_MANAGE permission on the area's site.
Soft-deletes the bookable area. Existing area bookings are
unaffected, but the area is removed from new-booking allocations
and disassociated from any AreaBookingType it was attached to.
Requires the SETTINGS_MANAGE permission on the area's site.
Creates a copy of an existing BookableArea under the same site
and organisation. Useful for seeding additional areas off an
existing one — e.g. "Hot Tub 2" copied from "Hot Tub 1".
Requires the SETTINGS_MANAGE permission on the area's site.
Maximum guests this area can hold concurrently. Defaults
to the source area's capacity when omitted. Lowering
capacity later does not affect existing bookings already
above the limit.
Returns all AvailabilityRules configured on a BookableArea.
Availability rules carve up the calendar into windows when the
area can or cannot be booked — useful for blocking maintenance
slots or restricting cabana hours.
Any is_available: false rule overrides any is_available: true
rule for the same time period.
Requires the SETTINGS_MANAGE permission on the area's site.
Adds a new AvailabilityRule to a BookableArea. With
is_available: true the rule opens new bookable windows; with
is_available: false it blocks them. Omitting date/time/weekday
filters means the rule applies always.
date_from defaults to today in the area's timezone when omitted.
Requires the SETTINGS_MANAGE permission on the area's site.
Updates an AvailabilityRule on a BookableArea. The server
validates the same shape as on create, so is_available is
required. Calendar availability is recomputed from the updated
rule set.
Requires the SETTINGS_MANAGE permission on the area's site.