API referenceSections

switch (final sync, then serve from the new server), finalize (remove from the old one), rollback, retry

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

POST /api/v1/tenants/{tid}/site-moves/{mid}/actions/{action} may answer 202

switch (final sync, then serve from the new server), finalize (remove from the old one), rollback, retry. MOVE_STATE when not possible now

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
midpathstringrequired
actionpathstringrequired
Allowed values: "switch" "finalize" "rollback" "retry"
X-CSRF-Tokenheaderstringoptional

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

Responses

202 Move

Content type: application/json

  • id string required
  • state string required
    Allowed values: "preparing" "copying" "configuring" "verifying" "ready" "final_sync" "switching" "switched" "cleaning" "done" "failed" "rolling_back" "rolled_back"
  • error_code string required
  • failed_in string required
  • site_id string required
  • hostname string required
  • from_server_id string required
  • to_server_id string required
  • from_server_name string required
  • to_server_name string required
  • databases array<string> required
  • pulls array<object> required
    • final boolean required
    • stats SyncStats required
      • copied integer required
      • deleted integer required
      • unchanged integer required
      • bytes integer required
      • seconds number required
      • skipped array<string> optional
    • at string (date-time) required
  • verify null | object required
    • from_status integer required
    • to_status integer required
    • ok boolean required
    • detail string optional
    • at string (date-time) required
  • dns null | DNSHandover required
    • domain string optional
    • zone string optional
    • changed integer required
    • error string optional
    • manual array<object> required
      • name string required
      • type string required
      • value string required
      • ttl integer required
  • warnings array<string> required
  • downtime_seconds number | null required
  • actions array<string> required
    Allowed values: "switch" "finalize" "rollback" "retry"
  • created_at string (date-time) required
  • updated_at string (date-time) required
Example
{
  "id": "string",
  "state": "preparing",
  "error_code": "string",
  "failed_in": "string",
  "site_id": "string",
  "hostname": "string",
  "from_server_id": "string",
  "to_server_id": "string",
  "from_server_name": "string",
  "to_server_name": "string",
  "databases": [
    "string"
  ],
  "pulls": [
    {
      "final": true,
      "stats": {
        "copied": 0,
        "deleted": 0,
        "unchanged": 0,
        "bytes": 0,
        "seconds": 0,
        "skipped": [
          "string"
        ]
      },
      "at": "2026-01-01T00:00:00Z"
    }
  ],
  "verify": {
    "from_status": 0,
    "to_status": 0,
    "ok": true,
    "detail": "string",
    "at": "2026-01-01T00:00:00Z"
  },
  "dns": {
    "domain": "string",
    "zone": "string",
    "changed": 0,
    "error": "string",
    "manual": [
      {
        "name": "string",
        "type": "string",
        "value": "string",
        "ttl": 0
      }
    ]
  },
  "warnings": [
    "string"
  ],
  "downtime_seconds": 0,
  "actions": [
    "switch"
  ],
  "created_at": "2026-01-01T00:00:00Z",
  "updated_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