BookableAreas

Update a bookable area availability rule

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.

put/shop/bookable-areas/{bookableAreaId}/availability-rules/{availabilityRuleId}

Request body

is_availableboolean required

Whether the window is bookable. false rules override true rules.

date_fromstring date nullable

First date this rule applies (inclusive).

date_tostring date nullable

Last date this rule applies (inclusive).

time_fromstring nullable

Daily start time in HH:MM.

time_tostring nullable

Daily end time in HH:MM.

weekdaysstring[]

Example request

{
  "date_from": "2026-06-01",
  "date_to": "2026-08-31",
  "time_from": "10:00",
  "time_to": "18:00"
}

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.