Skip to navigation

Get Hours Widget

View as Markdown

Loads a published hours widget.

data is an array of hour types (for example “Base”, “Happy Hour”), each with:

  • regularHours[]: one entry per dayOfTheWeek (SUNDAY to SATURDAY) with isOpen, is24Hours and period[] of { startTime, endTime } in HH:mm (24h).
  • exceptionalHours[]: same shape keyed by date. The API normalizes it to YYYY-MM-DD.
  • isTemporarilyClosed: when true, the widget shows a closed state.
  • position: optional sort order.

config: alignment, maxColumns, timeFormat (h12 | h24), firstDayOfWeek (sunday | monday | currentDay), dayFormat (short | full), groupWeekdays, hideCurrentDayHighlight, hideDaysWithoutHours, hideOpenStatus, plus header/body fonts and colors.

store is optional.

Set the hoursWidgetId collection variable to a published hours widget id.

Query parameters

widgetTypestringRequired

Required. Must be hours.

Response headers

ETagstringOptional
Cache-ControlstringOptional
Access-Control-Allow-OriginstringOptional
Access-Control-Expose-HeadersstringOptional

Response

OK
idstringformat: "uuid"
geoobject
datalist of objects
typestring
storeobject
configobject
createdAtinteger
updatedAtinteger