{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-endpoint-tests-api-endpoint-http-test-update-schema.json",
  "title": "Endpoint_Tests_API_EndpointHttpTestUpdate",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-http-server-endpoint-scheduled-tests-api-openapi.yml#/components/schemas/Endpoint_Tests_API_EndpointHttpTestUpdate",
  "allOf": [
    {
      "$ref": "#/$defs/Endpoint_Tests_API_TestUpdate"
    },
    {
      "type": "object",
      "properties": {
        "url": {
          "$ref": "#/$defs/Endpoint_Tests_API_EndpointHttpServerTestUrl"
        }
      }
    }
  ],
  "$defs": {
    "Endpoint_Tests_API_EndpointHttpServerTestUrl": {
      "type": "string",
      "description": "The test target URL. You can optionally specify the protocol (`http` or `https`). \n\n- **Default Protocol:** If no protocol is specified, `https` is used by default.\n\n- **Port Number:** To specify a port, append it to the URL with a colon after the hostname or IP address (e.g., `https://example.com:443`).\n\n    - If no port is specified in the URL, the `port` is determined by the default for protocol (HTTP: 80, HTTPS: 443).\n"
    },
    "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_TestInterval": {
      "type": "integer",
      "enum": [
        60,
        120,
        300,
        600,
        900,
        1800,
        3600
      ],
      "description": "Interval between test runs in seconds.",
      "default": 60
    },
    "Endpoint_Tests_API_TestIsEnabled": {
      "type": "boolean",
      "description": "Indicates if test is enabled.",
      "default": true
    },
    "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"
    },
    "Endpoint_Tests_API_TestUpdate": {
      "type": "object",
      "properties": {
        "interval": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestInterval"
        },
        "testName": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestName"
        },
        "protocol": {
          "$ref": "#/$defs/Endpoint_Tests_API_EndpointTestProtocol"
        },
        "isEnabled": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestIsEnabled"
        },
        "tcpProbeMode": {
          "$ref": "#/$defs/Endpoint_Tests_API_TestProbeMode"
        }
      }
    }
  }
}