{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alert-camp/json-schema/alert-camp-itinerary-update-schema.json",
  "title": "ItineraryUpdate",
  "description": "Partial update of a route: delivery channels and the search window.\n\nThe NIGHTS are not editable — their order and adjacency are validated as a\nwhole at create time (walkable hops, a trailhead on night 1), so changing\none in isolation could leave a route the provider would refuse to book.\nChanging those means creating a new route.\n\nThe window is different: shifting or widening it re-derives every leg's\nrange mechanically and cannot invalidate the sequence.  Widening it is also\nthe single most useful edit — more candidate start days is more chances to\nfire — which is exactly why it is editable on an ordinary alert too.\n\n``party_size`` and ``tent_pads`` are editable for the same reason they are\non an ordinary alert — and for routes they are not cosmetic: both feed the\ncapacity gate (a night's zone must have ``max(tent_pads, party_size, 1)``\nunits free).  The handler mirrors any change onto every leg and re-baselines\nthe route so a looser requirement can fire again instead of staying\nsuppressed by the prior signature.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alert-camp-itineraries-api-openapi.yml#/components/schemas/ItineraryUpdate",
  "properties": {
    "notify_push": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notify Push"
    },
    "notify_email": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notify Email"
    },
    "notify_sms": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notify Sms"
    },
    "window_start": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Window Start"
    },
    "window_end": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Window End"
    },
    "party_size": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 99.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Party Size"
    },
    "tent_pads": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 50.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Tent Pads"
    }
  },
  "type": "object"
}