{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/siteqwality-com/json-schema/siteqwality-com-create-http-job-request-schema.json",
  "title": "CreateHttpJobRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/siteqwality-com-openapi-openapi.json#/components/schemas/CreateHttpJobRequest",
  "type": "object",
  "required": [
    "timeout_ms",
    "uri",
    "run_interval_seconds"
  ],
  "properties": {
    "service_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Assign the new monitor to a service in the same account."
    },
    "check_regions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Location ids. Left out or empty: `GET /check-locations/default`, one location, or\ntwo on different providers on an uptime plan with room in its quota."
    },
    "min_healthy_regions": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "friendly_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "follow_redirects": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "final_uri": {
      "type": [
        "string",
        "null"
      ]
    },
    "check_type": {
      "oneOf": [
        {
          "$ref": "#/$defs/CheckType",
          "description": "What the monitor checks: `http` (the default), `tcp` or `ping`. Fixed once created."
        },
        {
          "type": "null"
        }
      ]
    },
    "method": {
      "type": [
        "string",
        "null"
      ],
      "description": "The HTTP method; required for `http`. TCP and ping monitors store `TCP` and `PING`."
    },
    "keyword_search": {
      "type": [
        "string",
        "null"
      ]
    },
    "keyword_search_inverted": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "keyword_search_case_sensitive": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "keyword_search_regex": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "timeout_ms": {
      "type": "integer",
      "format": "int32",
      "description": "Milliseconds. `http` up to 60000, `tcp` 1000 to 60000, `ping` 1000 to 10000."
    },
    "uri": {
      "type": "string",
      "description": "`http`: the URL. `tcp`: `tcp://host:port` or `host:port`. `ping`: `ping://host` or\nthe host alone. IPv6 addresses go in brackets."
    },
    "tcp_send": {
      "type": [
        "string",
        "null"
      ],
      "description": "`tcp` only: sent once connected, with `\\r \\n \\t \\0 \\\\ \\xHH` escapes. At most\n1024 bytes after unescaping."
    },
    "tcp_expect": {
      "type": [
        "string",
        "null"
      ],
      "description": "`tcp` only: the response must contain this (same escapes, case-sensitive), 1 to\n256 bytes after unescaping. Left out, connecting is enough."
    },
    "tcp_tls": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "`tcp` only: complete a verified TLS handshake first. Defaults to false."
    },
    "ping_count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "`ping` only: echo requests per check, 1 to 10. Defaults to 3."
    },
    "ping_loss_threshold": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "`ping` only: fail when at least this percent of packets are lost, 1 to 100.\nDefaults to 100, so only total loss fails."
    },
    "recheck_on_failure": {
      "oneOf": [
        {
          "$ref": "#/$defs/RecheckOnFailure",
          "description": "Check a failed run once more before it counts: `off`, `same_location`,\nor `another_cloud` (paid plans). Omitted takes the plan's default:\n`another_cloud` on a paid plan, `same_location` on the free plan."
        },
        {
          "type": "null"
        }
      ]
    },
    "web_bot_auth": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "`http` only. Sign check requests with Web Bot Auth so bot protection such as\nCloudflare recognizes SiteQwality Monitor, a verified bot. Defaults to off."
    },
    "request_body": {
      "type": [
        "string",
        "null"
      ]
    },
    "content_type": {
      "oneOf": [
        {
          "$ref": "#/$defs/HttpJobContentType"
        },
        {
          "type": "null"
        }
      ]
    },
    "auth_type": {
      "oneOf": [
        {
          "$ref": "#/$defs/HttpJobAuthType"
        },
        {
          "type": "null"
        }
      ]
    },
    "auth_username": {
      "type": [
        "string",
        "null"
      ]
    },
    "auth_password": {
      "type": [
        "string",
        "null"
      ]
    },
    "auth_bearer_token": {
      "type": [
        "string",
        "null"
      ]
    },
    "success_http_codes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "failure_http_codes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "custom_http_headers": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "run_interval_seconds": {
      "type": "integer",
      "format": "int32"
    },
    "run_interval_thirty_seconds": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "group_notification_ids": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Notification groups to alert. Left out or null: the account's default group. `[]`: notify no one."
    },
    "monitor_tls": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "monitor_dns": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Pair a domain-expiry monitor. Defaults to true for `http` and false for `tcp` and\n`ping`, which allow it only when the host is a domain name."
    },
    "monitor_page_speed": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "tags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "http_version": {
      "oneOf": [
        {
          "$ref": "#/$defs/HttpJobHttpVersion",
          "description": "Preferred HTTP version. Defaults to `auto` when omitted."
        },
        {
          "type": "null"
        }
      ]
    },
    "confirmation_threshold": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Number of consecutive failed checks (1-10) required before the monitor\nis considered down and notifications are sent. Defaults to 1 (alert on\nthe first failed check)."
    },
    "json_path": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional JSONPath assertion on the response body."
    },
    "json_path_expected": {
      "type": [
        "string",
        "null"
      ],
      "description": "When set, the JSONPath result must stringify to this value."
    },
    "tls_port": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Port the TLS check connects to, 1 to 65535. Omitted keeps the stored\nport (443 for a new TLS check). Needs `monitor_tls`."
    },
    "alert_on_invalid_certificate": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Alert when the certificate is one a browser would reject: expired, not yet\nvalid, self-signed, an untrusted chain or a hostname mismatch. Defaults to\ntrue. Ignored without `monitor_tls`."
    },
    "recovery_period_runs": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Healthy runs in a row (1-10) before a recovery is notified. Defaults to 2."
    },
    "flap_hold": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Deprecated: sets `flap_hold_override` when that is absent.",
      "deprecated": true
    },
    "flap_hold_override": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Hold alerts while the monitor flaps. Absent or `null` follows the account's\nnotification setting."
    },
    "trace_propagation": {
      "type": [
        "boolean",
        "null"
      ]
    }
  },
  "$defs": {
    "CheckType": {
      "type": "string",
      "description": "What an uptime monitor checks. Stored as text with a CHECK and decoded strictly.",
      "enum": [
        "http",
        "tcp",
        "ping"
      ]
    },
    "HttpJobAuthType": {
      "type": "string",
      "enum": [
        "basic",
        "digest",
        "bearer"
      ]
    },
    "HttpJobContentType": {
      "type": "string",
      "enum": [
        "json",
        "xml",
        "form_url_encoded",
        "text"
      ]
    },
    "HttpJobHttpVersion": {
      "type": "string",
      "description": "Preferred HTTP version for the check transport (isahc/libcurl).\nStored on the job; observed negotiated version is on `http_job_results.http_version`.",
      "enum": [
        "auto",
        "http1_1",
        "http2",
        "http2_with_fallback"
      ]
    },
    "RecheckOnFailure": {
      "type": "string",
      "description": "How a failed run is checked again before it counts toward DOWN. Stored as\ntext with a CHECK and decoded strictly.",
      "enum": [
        "off",
        "same_location",
        "another_cloud"
      ]
    }
  }
}