BookableAreas
Create an availability rule for a bookable area
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.
post/shop/bookable-areas/{bookableAreaId}/availability-rules
Request body
UpdateBookableAreaAvailabilityRuleContentApplication1jsonSchema required— unresolved $ref
Response
A single AvailabilityRule.
Example response
{
"data": {
"date_from": "2021-02-15",
"date_to": "2021-02-15",
"time_from": "11:00",
"time_to": "17:00"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.