{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-agents-api-agent-request-schema.json",
  "title": "Agents_API_AgentRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-cloud-and-enterprise-agents-api-openapi.yml#/components/schemas/Agents_API_AgentRequest",
  "type": "object",
  "properties": {
    "agentName": {
      "type": "string",
      "description": "Name of the agent."
    },
    "enabled": {
      "type": "boolean",
      "description": "Flag indicating if the agent is enabled."
    },
    "accountGroups": {
      "type": "array",
      "description": "Contains a list of account groups IDs. See `/accounts-groups` for a list of account IDs",
      "items": {
        "type": "string"
      }
    },
    "ipv6Policy": {
      "$ref": "#/$defs/Agents_API_AgentIpv6Policy"
    },
    "keepBrowserCache": {
      "type": "boolean",
      "description": "Flag indicating if the agent retains cache."
    },
    "targetForTests": {
      "type": "string",
      "format": "ipv4",
      "description": "Test target IP address."
    },
    "localResolutionPrefixes": {
      "type": "array",
      "description": "Public IP ranges for rDNS lookups. The range must be in CIDR notation; for example, 10.1.1.0/24. Maximum of 5 prefixes allowed (Enterprise Agents and Enterprise Agent clusters only).",
      "items": {
        "type": "string"
      }
    },
    "tests": {
      "type": "array",
      "description": "Contains list of test IDs. See `/tests` to pull a list of available tests.",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "Agents_API_AgentIpv6Policy": {
      "type": "string",
      "description": "IP version policy, (Enterprise Agents and Enterprise Clusters only)",
      "enum": [
        "force-ipv4",
        "prefer-ipv6",
        "force-ipv6"
      ]
    }
  }
}