Otter · JSON Structure

Public Api Upsert Hours Event Structure

Event data containing all Menu Hours.

Type: object Properties: 1 Required: 1
RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

UpsertHoursEvent is a JSON Structure definition published by Otter, describing 1 property, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

menuHoursData

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-structure/public-api-upsert-hours-event-structure.json",
  "name": "UpsertHoursEvent",
  "description": "Event data containing all Menu Hours.",
  "type": "object",
  "properties": {
    "menuHoursData": {
      "type": "object",
      "additionalProperties": {
        "x-additionalPropertiesName": "menuId",
        "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-hours-data-schema.json"
      },
      "description": "Menu IDs to Hours",
      "example": {
        "da0e4e94-5670-4175-897a-3b7dde45bed5": {
          "timeZone": "America/Los_Angeles",
          "regularHours": [
            {
              "days": [
                "MONDAY",
                "TUESDAY",
                "WEDNESDAY",
                "THURSDAY",
                "FRIDAY"
              ],
              "timeRanges": [
                {
                  "start": "08:00",
                  "end": "22:00"
                }
              ]
            }
          ],
          "specialHours": [
            {
              "date": "2021-12-31",
              "timeRanges": [
                {
                  "start": "08:00",
                  "end": "22:00"
                }
              ],
              "type": "CLOSED"
            }
          ]
        }
      }
    }
  },
  "required": [
    "menuHoursData"
  ]
}