{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-endpoint-tests-api-dynamic-test-request-schema.json",
  "title": "Endpoint_Tests_API_DynamicTestRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-agent-to-server-endpoint-dynamic-tests-api-openapi.yml#/components/schemas/Endpoint_Tests_API_DynamicTestRequest",
  "allOf": [
    {
      "type": "object",
      "required": [
        "testName",
        "application"
      ],
      "properties": {
        "agentSelectorType": {
          "$ref": "#/$defs/Endpoint_Tests_API_EndpointTestAgentSelectorType"
        },
        "agents": {
          "$ref": "#/$defs/Endpoint_Tests_API_EndpointTestAgents"
        },
        "endpointAgentLabels": {
          "$ref": "#/$defs/Endpoint_Tests_API_EndpointAgentLabels"
        },
        "tagIds": {
          "$ref": "#/$defs/Endpoint_Tests_API_TagIds"
        },
        "isPrioritized": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestIsPrioritized"
        },
        "interval": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestInterval"
        },
        "maxMachines": {
          "$ref": "#/$defs/Endpoint_Tests_API_EndpointTestMaxMachines"
        },
        "application": {
          "$ref": "#/$defs/Endpoint_Tests_API_DynamicTestApplication"
        },
        "protocol": {
          "$ref": "#/$defs/Endpoint_Tests_API_EndpointTestProtocol"
        },
        "tcpProbeMode": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestProbeMode"
        },
        "testName": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestName"
        },
        "hasPathTraceInSession": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestHasPathTraceInSession"
        },
        "ipVersion": {
          "$ref": "#/$defs/Endpoint_Tests_API_EndpointIpVersionIn"
        }
      }
    }
  ],
  "$defs": {
    "Endpoint_Tests_API_DynamicTestApplication": {
      "type": "string",
      "description": "Which supported application to monitor, can be one of `webex`, `zoom`, `microsoft-teams`."
    },
    "Endpoint_Tests_API_EndpointAgentLabels": {
      "type": "array",
      "deprecated": true,
      "description": "Deprecated. Use `tagIds` instead.\n\nList of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.\n",
      "items": {
        "type": "string"
      }
    },
    "Endpoint_Tests_API_EndpointIpVersionIn": {
      "description": "For configuring network tests, the IP version of the test.",
      "type": "string",
      "enum": [
        "V4_ONLY",
        "V6_ONLY",
        "V6_PREFER",
        "OS_DEFAULT"
      ]
    },
    "Endpoint_Tests_API_EndpointTestAgentSelectorType": {
      "type": "string",
      "enum": [
        "all-agents",
        "specific-agents",
        "agent-labels",
        "agent-tags"
      ],
      "description": "Specifies how agents are selected for the endpoint test.\n\nAgents can be selected from:\n  - all available agents\n  - a specific list of agents\n  - agents matching tags\n  - agents matching labels (deprecated)\n",
      "default": "all-agents"
    },
    "Endpoint_Tests_API_EndpointTestAgents": {
      "type": "array",
      "description": "List of endpoint agent IDs (obtained from `/endpoint/agents` endpoint). Required when `agentSelectorType` is set to `specific-agent`.",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "Endpoint_Tests_API_EndpointTestMaxMachines": {
      "type": "integer",
      "description": "Maximum number of agents which can execute the test.",
      "default": 25
    },
    "Endpoint_Tests_API_EndpointTestProtocol": {
      "type": "string",
      "enum": [
        "icmp",
        "icmp-with-tcp-connect",
        "tcp",
        "prefer-tcp",
        "ast-autodetect",
        "autodetect"
      ],
      "description": "Protocol requested for the test.",
      "default": "icmp"
    },
    "Endpoint_Tests_API_TagIds": {
      "type": "array",
      "description": "List of tag IDs (obtained from `/tags` endpoint).",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "Endpoint_Tests_API_TestHasPathTraceInSession": {
      "type": "boolean",
      "description": "Enables \"in session\" path trace. When enabled, this option initiates a TCP session with the target server and sends path trace packets within the established TCP session."
    },
    "Endpoint_Tests_API_TestInterval": {
      "type": "integer",
      "enum": [
        60,
        120,
        300,
        600,
        900,
        1800,
        3600
      ],
      "description": "Interval between test runs in seconds.",
      "default": 60
    },
    "Endpoint_Tests_API_TestIsPrioritized": {
      "type": "boolean",
      "description": "Indicates whether the test should be prioritized when the number of tests assigned to an agent exceeds the license limit.",
      "default": false
    },
    "Endpoint_Tests_API_TestName": {
      "type": "string",
      "description": "Name of the test."
    },
    "Endpoint_Tests_API_TestProbeMode": {
      "type": "string",
      "enum": [
        "auto",
        "sack",
        "syn"
      ],
      "description": "Probe mode used by network test, only valid when the protocol is set to TCP.",
      "default": "auto"
    }
  }
}