API referenceSections

Start, stop, restart a service or set its start type; the panel's own services are refused; audited

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}/services/control

Start, stop, restart a service or set its start type; the panel's own services are refused; audited (ADR 0075)

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
  • no other properties
  • service string required
  • action string required
    Allowed values: "start" "stop" "restart" "start_type"
  • start_type string optional
    Allowed values: "auto" "manual" "disabled"
Example
{
  "service": "string",
  "action": "start",
  "start_type": "auto"
}

Responses

200 The service after the action

Content type: application/json

  • name string required
  • display_name string required
  • group string required
    Allowed values: "web" "mail" "database" "cache" "app" "dns" "system" "zopanel"
  • orphan boolean required

    A ZopanelCache-* or ZopanelApp-* service whose cache or site the panel has no record of (ADR 0105)

  • protected boolean required
  • state string required
    Allowed values: "running" "stopped" "starting" "stopping" "paused"
  • start_type string required
    Allowed values: "auto" "delayed" "manual" "disabled"
  • pid integer optional
  • dependents array<string> optional
  • hold object optional
    • by string required
    • at string (date-time) required
Example
{
  "name": "string",
  "display_name": "string",
  "group": "web",
  "orphan": true,
  "protected": true,
  "state": "running",
  "start_type": "auto",
  "pid": 0,
  "dependents": [
    "string"
  ],
  "hold": {
    "by": "string",
    "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