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
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.