Sites

Update a ShopSites' opening hour override

Update an existing override for a ShopSites' opening hours. Use this endpoint when you need to amend a previously created exception — for example, extending a holiday closure by a day, or adjusting the time window during which the site is open. All fields in the request body are optional, but date_from and date_to together must form a valid range, and if time_to is provided it must fall after time_from.

put/shop/sites/{siteId}/opening-hours-overrides/{openingHoursOverrideId}

Request body

date_fromstring date

The start of the rule period.

date_tostring date

The end of the rule period.

is_availableboolean

Whether the resource is available during this period. Any false rules will override true rules.

time_fromstring

The daily start time of the time period, in 24 hour format.

time_tostring

The daily end time of the time period, in 24 hour format.

Example request

{
  "date_from": "2021-02-15",
  "date_to": "2021-02-15",
  "time_from": "11:00",
  "time_to": "17:00"
}

Response

The opening hour override was successfully updated.

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.