API referenceSections

Turn maintenance on (with a note) or off (empty note); the server takes nothing new while on

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

PUT /api/v1/tenants/{tid}/servers/{id}/maintenance

Turn maintenance on (with a note) or off (empty note); the server takes nothing new while on (ADR 0052)

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

object
  • note string required
Example
{
  "note": "string"
}

Responses

200 Server

Content type: application/json

  • maintenance string optional
  • id string required
  • tenant_id string required
  • name string required
  • hostname string required
  • created_at string (date-time) required
  • agent_last_seen_at string (date-time) | null required
  • agent_revoked_at string (date-time) | null required
  • blocked_ips array<string> required

    Refused by the server's firewall (ADR 0024)

  • public_ip string required

    Where the Internet reaches the server (ADR 0033)

  • dns_names array<string> required

    Nameserver names the server's DNS answers as

Example
{
  "maintenance": "string",
  "id": "string",
  "tenant_id": "string",
  "name": "string",
  "hostname": "string",
  "created_at": "2026-01-01T00:00:00Z",
  "agent_last_seen_at": "2026-01-01T00:00:00Z",
  "agent_revoked_at": "2026-01-01T00:00:00Z",
  "blocked_ips": [
    "string"
  ],
  "public_ip": "string",
  "dns_names": [
    "string"
  ]
}

default Error

Content type: application/json

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