API referenceSections

Abandon a gone server with what the panel keeps of it

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

POST /api/v1/tenants/{tid}/servers/{id}/abandon

Abandon a gone server with what the panel keeps of it (ADR 0198)

Its name typed in confirm (SERVER_REMOVE_CONFIRM) and the administrator's own password again (INVALID_CREDENTIALS). In one transaction: its sites and databases are deleted the way a delete goes and their removal jobs end as done (result SERVER_REMOVED), its caches, mail domains and DNS zones are forgotten, its kept deleted sites purged, every other job waiting for it fails with SERVER_REMOVED, and it leaves the server list. Off-machine backups stay. Nothing on it: SERVER_ABANDON_EMPTY (remove it instead). Audit server.abandoned, and server.abandoned_contents for each tenant.

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
  • confirm string required

    The server's name, exactly

  • password string (password) required
Example
{
  "confirm": "string",
  "password": "********"
}

Responses

200 What was dropped

Content type: application/json

What abandoning a gone server drops, per tenant (ADR 0198)

  • server_id string required
  • server_name string required
  • remains object required
    • sites integer required
    • kept_sites integer required
    • databases integer required
    • mail_domains integer required
    • dns_zones integer required
    • caches integer required
    • jobs integer required
  • tenants array<object> | null required
    • tenant_id string required
    • tenant_name string required
    • sites array<string> | null required
    • kept_sites array<string> | null required
    • databases array<string> | null required
    • mail_domains array<string> | null required
    • dns_zones array<string> | null required
    • caches array<string> | null required
    • offsite_backups integer required

      Finished backups from this server with a copy off it; they stay

Example
{
  "server_id": "string",
  "server_name": "string",
  "remains": {
    "sites": 0,
    "kept_sites": 0,
    "databases": 0,
    "mail_domains": 0,
    "dns_zones": 0,
    "caches": 0,
    "jobs": 0
  },
  "tenants": [
    {
      "tenant_id": "string",
      "tenant_name": "string",
      "sites": [
        "string"
      ],
      "kept_sites": [
        "string"
      ],
      "databases": [
        "string"
      ],
      "mail_domains": [
        "string"
      ],
      "dns_zones": [
        "string"
      ],
      "caches": [
        "string"
      ],
      "offsite_backups": 0
    }
  ]
}

default Error

Content type: application/json

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