Packages

Update a package availability rule

Replaces an AvailabilityRule on a Package. The server validates the same shape as on create, so is_available is required. Requires the SETTINGS_MANAGE permission on the package's site.

put/shop/packages/{packageId}/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.

min_durationinteger nullable

Match only for total package durations ≥ this many minutes.

max_durationinteger nullable

Match only for total package durations ≤ this many minutes.

weekdaysstring[]

Example request

{
  "date_from": "2026-12-24",
  "date_to": "2026-12-26",
  "time_from": "10:00",
  "time_to": "18:00",
  "min_duration": 60,
  "max_duration": 240
}

Response

A single AvailabilityRule belonging to a Package.

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.