Sites

Update a ShopSites' opening hour override

Use this endpoint to update an override for a ShopSites' opening hours.

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