{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-update-dashboard-request-schema.json",
  "title": "UpdateDashboardRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-dashboards-api-openapi.yml#/components/schemas/UpdateDashboardRequest",
  "properties": {
    "slug": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z0-9][a-z0-9\\-]*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Slug"
    },
    "title": {
      "anyOf": [
        {
          "$ref": "#/$defs/NameString"
        },
        {
          "type": "null"
        }
      ]
    },
    "description": {
      "anyOf": [
        {
          "$ref": "#/$defs/DescriptionString"
        },
        {
          "type": "null"
        }
      ]
    },
    "page_context": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "home",
            "patients",
            "calls",
            "data",
            "analytics",
            "pipeline",
            "operators",
            "surfaces",
            "compliance",
            "custom"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Page Context"
    },
    "panels": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "maxItems": 50
        },
        {
          "type": "null"
        }
      ],
      "title": "Panels"
    },
    "filters": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "maxItems": 20
        },
        {
          "type": "null"
        }
      ],
      "title": "Filters"
    },
    "refresh_interval": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 86400.0,
          "minimum": 10.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Refresh Interval"
    }
  },
  "type": "object",
  "$defs": {
    "DescriptionString": {
      "type": "string",
      "maxLength": 2000
    },
    "NameString": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1
    }
  }
}