{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-aggregation-selection-review-request-schema.json",
  "title": "AggregationSelectionReviewRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-aggregationrules-api-openapi.yml#/components/schemas/AggregationSelectionReviewRequest",
  "type": "object",
  "required": [
    "scopes",
    "scopes_to_aggregate_at"
  ],
  "properties": {
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of input scopes where entities are selected"
    },
    "scopes_to_aggregate_at": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AggregationScopeLevel"
      },
      "description": "Levels at which to aggregate and return platform entities"
    }
  },
  "$defs": {
    "AggregationScopeLevel": {
      "title": "AggregationScopeLevel",
      "type": "string",
      "enum": [
        "ACCOUNT",
        "ORGANIZATION",
        "PROJECT",
        "SYSTEM",
        "TEAM"
      ]
    }
  }
}