{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cekura-ai/json-schema/cekura-ai-bulk-widget-data-request-schema.json",
  "title": "BulkWidgetDataRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cekura-ai-dashboards-api-openapi.yml#/components/schemas/BulkWidgetDataRequest",
  "type": "object",
  "properties": {
    "widget_ids": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "List of widget IDs to get data for"
    },
    "filters": {
      "type": "object",
      "description": "Optional override filters for all widgets. Filter conditions to scope the data. See the [Dashboards guide](https://docs.cekura.ai/documentation/guides/dashboards#filters) for supported fields, operators, and syntax.",
      "properties": {
        "field": {
          "type": "string",
          "description": "Field name to filter on"
        },
        "op": {
          "type": "string",
          "enum": [
            "eq",
            "neq",
            "gt",
            "gte",
            "lt",
            "lte",
            "contains",
            "startswith",
            "endswith",
            "in",
            "isnull",
            "regex"
          ],
          "description": "Comparison operator"
        },
        "value": {
          "description": "Value to compare against. Type depends on the field and operator."
        },
        "operator": {
          "type": "string",
          "enum": [
            "and",
            "or",
            "same_row"
          ],
          "description": "Logical operator to combine conditions"
        },
        "conditions": {
          "type": "array",
          "description": "List of filter conditions or nested groups",
          "items": {}
        }
      }
    }
  },
  "required": [
    "widget_ids"
  ]
}