{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/siteqwality-com/json-schema/siteqwality-com-update-http-job-request-schema.json",
  "title": "UpdateHttpJobRequest",
  "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/UpdateHttpJobRequest",
  "type": "object",
  "properties": {
    "check_regions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "min_healthy_regions": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "friendly_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "follow_redirects": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "final_uri": {
      "type": [
        "string",
        "null"
      ]
    },
    "method": {
      "type": [
        "string",
        "null"
      ]
    },
    "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",
        "null"
      ],
      "format": "int32"
    },
    "uri": {
      "type": [
        "string",
        "null"
      ]
    },
    "request_body": {
      "type": [
        "string",
        "null"
      ]
    },
    "content_type": {
      "oneOf": [
        {
          "$ref": "#/$defs/HttpJobContentType",
          "description": "Absent keeps it; `null` removes it."
        },
        {
          "type": "null"
        }
      ]
    },
    "auth_type": {
      "oneOf": [
        {
          "$ref": "#/$defs/HttpJobAuthType",
          "description": "Absent keeps it; `null` turns authentication off."
        },
        {
          "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"
      ],
      "description": "Replaces the stored headers. Absent keeps them; `null` or `{}` removes them.",
      "additionalProperties": {
        "type": "string"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "run_interval_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "run_interval_thirty_seconds": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "group_notification_ids": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "monitor_tls": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "monitor_dns": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "monitor_page_speed": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "state": {
      "oneOf": [
        {
          "$ref": "#/$defs/HttpJobState"
        },
        {
          "type": "null"
        }
      ]
    },
    "tags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "http_version": {
      "oneOf": [
        {
          "$ref": "#/$defs/HttpJobHttpVersion",
          "description": "Preferred HTTP version for the check client."
        },
        {
          "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."
    },
    "json_path": {
      "type": [
        "string",
        "null"
      ]
    },
    "json_path_expected": {
      "type": [
        "string",
        "null"
      ]
    },
    "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. Omitted keeps\nthe stored setting (true for a new TLS check). 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."
    },
    "flap_hold": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Deprecated: sets `flap_hold_override` when that is absent.",
      "deprecated": true
    },
    "flap_hold_override": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Absent leaves it unchanged; `null` follows the account's notification setting."
    },
    "trace_propagation": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "service_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The service this monitor belongs to; `null` detaches it and omission keeps it."
    },
    "check_type": {
      "oneOf": [
        {
          "$ref": "#/$defs/CheckType",
          "description": "The monitor's own `check_type` may be sent back; any other is a 400 (it is fixed)."
        },
        {
          "type": "null"
        }
      ]
    },
    "tcp_send": {
      "type": [
        "string",
        "null"
      ],
      "description": "`tcp` only. Absent keeps it; `null` or `\"\"` sends nothing."
    },
    "tcp_expect": {
      "type": [
        "string",
        "null"
      ],
      "description": "`tcp` only. Absent keeps it; `null` or `\"\"` makes connecting enough."
    },
    "tcp_tls": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "`tcp` only."
    },
    "ping_count": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "`ping` only, 1 to 10."
    },
    "ping_loss_threshold": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "`ping` only, 1 to 100."
    },
    "recheck_on_failure": {
      "oneOf": [
        {
          "$ref": "#/$defs/RecheckOnFailure",
          "description": "Check a failed run once more before it counts. Absent leaves it unchanged;\n`another_cloud` needs a paid plan."
        },
        {
          "type": "null"
        }
      ]
    },
    "web_bot_auth": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "`http` only. Sign check requests with Web Bot Auth. Absent leaves it unchanged."
    }
  },
  "$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"
      ]
    },
    "HttpJobState": {
      "type": "string",
      "enum": [
        "active",
        "paused"
      ]
    },
    "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"
      ]
    }
  }
}