{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/convertkit/main/json-schema/UrlAnyCondition.json",
  "title": "UrlAnyCondition",
  "type": "object",
  "description": "Filter by URL patterns. Only applicable for 'clicks' type. Subscriber must have clicked ANY of the specified URLs.",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "urls"
      ],
      "description": "Must be 'urls'"
    },
    "ids": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "Array of URL IDs. Subscriber must have clicked ANY of these."
    },
    "urls": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Array of URL patterns. Subscriber must have clicked ANY of these."
    },
    "matching": {
      "type": "string",
      "enum": [
        "exact",
        "contains",
        "starts_with",
        "ends_with"
      ],
      "description": "URL matching strategy",
      "default": "exact"
    }
  },
  "required": [
    "type"
  ]
}