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/controlStart, 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | 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
servicestring requiredactionstring requiredAllowed values:"start""stop""restart""start_type"start_typestring optionalAllowed values:"auto""manual""disabled"
Example
{
"service": "string",
"action": "start",
"start_type": "auto"
}Responses
200 The service after the action
Content type: application/json
namestring requireddisplay_namestring requiredgroupstring requiredAllowed values:"web""mail""database""cache""app""dns""system""zopanel"orphanboolean requiredA ZopanelCache-* or ZopanelApp-* service whose cache or site the panel has no record of (ADR 0105)
protectedboolean requiredstatestring requiredAllowed values:"running""stopped""starting""stopping""paused"start_typestring requiredAllowed values:"auto""delayed""manual""disabled"pidinteger optionaldependentsarray<string> optionalholdobject optionalbystring requiredatstring (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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required