{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "setId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Identifier of the set returned by its create or list operation."
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740989,
      "description": "Revision last read by the caller; mismatches reject concurrent updates."
    },
    "rules": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "grouping": {
            "type": "string",
            "enum": [
              "page",
              "source_host"
            ]
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        },
        "required": [
          "grouping",
          "value"
        ],
        "additionalProperties": false
      },
      "description": "Customer-owned exclusion rules for the selected competitor revision."
    }
  },
  "required": [
    "setId",
    "expectedRevision",
    "rules"
  ],
  "additionalProperties": false
}
