{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/livelike/main/json-schema/livelike-query-request-body-schema.json",
  "title": "QueryRequestBody",
  "description": "The request body for download endpoints.",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/livelike-analytics-api-openapi.yml#/components/schemas/QueryRequestBody",
  "type": "object",
  "required": [
    "parameters"
  ],
  "properties": {
    "parameters": {
      "type": "array",
      "description": "Filters to apply. Pass `[]` if the report has no required filters.",
      "items": {
        "$ref": "#/$defs/QueryFilterParameter"
      }
    }
  },
  "$defs": {
    "QueryFilterParameter": {
      "type": "object",
      "description": "A filter value to include when downloading report data.",
      "required": [
        "type",
        "target",
        "value"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "Use `\"category\"` for text filters. Also `\"date/range\"` and `\"number/=\"`."
        },
        "target": {
          "type": "array",
          "description": "Points to the filter: `[\"variable\", [\"template-tag\", \"filter_name\"]]` where `filter_name` matches the `name` field in the report's filters."
        },
        "value": {
          "type": "string",
          "description": "The value to filter by."
        }
      }
    }
  }
}