API referenceSections

Change a check's settings; its history stays

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/uptime/monitors/{id}

Change a check's settings; its history stays

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • name string required
  • kind string required
    Allowed values: "http" "smtp" "imap" "tcp" "heartbeat" "panel"
  • site_id string optional
  • server_id string optional
  • url string optional
  • host string optional
  • port integer optional
  • tls_mode string optional
    Allowed values: "none" "implicit" "starttls"
  • expect_status integer optional
  • keyword string optional
  • interval_s integer optional
    • minimum 60
    • maximum 300
  • timeout_s integer optional
    • minimum 1
    • maximum 30
  • fail_threshold integer optional
    • minimum 1
    • maximum 10
  • cert_warn_days integer optional
    • minimum 1
    • maximum 90
  • checker_id string optional
  • paused boolean optional
Example
{
  "name": "string",
  "kind": "http",
  "site_id": "string",
  "server_id": "string",
  "url": "string",
  "host": "string",
  "port": 0,
  "tls_mode": "none",
  "expect_status": 0,
  "keyword": "string",
  "interval_s": 60,
  "timeout_s": 1,
  "fail_threshold": 1,
  "cert_warn_days": 1,
  "checker_id": "string",
  "paused": true
}

Responses

200 Saved

Content type: application/json

A check run from outside the server being checked (ADR 0156)

  • id string required
  • tenant_id string required
  • name string required
  • kind string required
    Allowed values: "http" "smtp" "imap" "tcp" "heartbeat" "panel"
  • site_id string required
  • server_id string required
  • target string required

    The URL (http, panel) or host (smtp, imap, tcp)

  • port integer required
  • tls_mode string required

    none, implicit or starttls

  • expect_status integer required

    0 takes any 2xx or 3xx

  • keyword string required
  • interval_s integer required
  • timeout_s integer required
  • fail_threshold integer required

    Failed checks in a row that open an incident

  • cert_warn_days integer required
  • checker_id string required

    The external checker that runs it; empty is the panel

  • paused boolean required
  • state string required
    Allowed values: "unknown" "up" "down"
  • fails integer required
  • fail_since string (date-time) | null required
  • last_at string (date-time) | null required
  • last_ok boolean required
  • last_ms integer required
  • last_status integer required
  • last_error string required
  • last_source string required
  • cert_not_after string (date-time) | null required
  • next_at string (date-time) required
  • created_at string (date-time) required
Example
{
  "id": "string",
  "tenant_id": "string",
  "name": "string",
  "kind": "http",
  "site_id": "string",
  "server_id": "string",
  "target": "string",
  "port": 0,
  "tls_mode": "string",
  "expect_status": 0,
  "keyword": "string",
  "interval_s": 0,
  "timeout_s": 0,
  "fail_threshold": 0,
  "cert_warn_days": 0,
  "checker_id": "string",
  "paused": true,
  "state": "unknown",
  "fails": 0,
  "fail_since": "2026-01-01T00:00:00Z",
  "last_at": "2026-01-01T00:00:00Z",
  "last_ok": true,
  "last_ms": 0,
  "last_status": 0,
  "last_error": "string",
  "last_source": "string",
  "cert_not_after": "2026-01-01T00:00:00Z",
  "next_at": "2026-01-01T00:00:00Z",
  "created_at": "2026-01-01T00:00:00Z"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required