Otter · JSON Structure

Public Api Item Update Request Structure

Items are sold on the Menu. Modifiers to items are items themselves and their relationship is defined by ModifierGroup.

Type: object Properties: 9 Required: 5
RestaurantOrder ManagementDeliveryOnline OrderingMenu ManagementAnalytics

ItemUpdateRequest is a JSON Structure definition published by Otter, describing 9 properties, of which 5 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id name price status description modifierGroupIds priceOverrides photoUrls skuDetails

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-item-update-request-structure.json",
  "name": "ItemUpdateRequest",
  "description": "Items are sold on the Menu. Modifiers to items are items themselves and their relationship is defined by ModifierGroup.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Identifier of this Item.",
      "example": "faa4c79f-480d-4de1-bc34-5fb74ef082ef"
    },
    "name": {
      "type": "string",
      "description": "Name of this Item",
      "example": "Bagel"
    },
    "price": {
      "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-money-schema.json"
    },
    "status": {
      "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-item-status-schema.json"
    },
    "description": {
      "type": "string",
      "description": "Description of this Item",
      "example": "Delicious bagel!"
    },
    "modifierGroupIds": {
      "type": "array",
      "default": [],
      "description": "Identifiers of each ModifierGroup within this Item.",
      "items": {
        "type": "string",
        "example": "7152ee6e-e941-45c1-9008-2e306b479114"
      }
    },
    "priceOverrides": {
      "type": "array",
      "nullable": true,
      "description": "Specify price overrides for different service slugs.",
      "items": {
        "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-item-price-override-schema.json"
      }
    },
    "photoUrls": {
      "type": "array",
      "nullable": true,
      "description": "List of photoUrls to associate with the Item. This is used only for POST/PUT requests.",
      "items": {
        "type": "string"
      }
    },
    "skuDetails": {
      "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-sku-details-schema.json"
    }
  },
  "required": [
    "id",
    "name",
    "price",
    "status",
    "description"
  ]
}