API operation · services group
POST
/services/{name}/restart
First published 14 Oct 2026
0.2.0Unchanged since publicationRestart a daemon
Who may call it
AdministratorResellerCustomer
Token scope, any of
settingsallAnswers200 OK
UrbeStack normally restarts the daemon immediately and waits for it to pass its health check. UrbeStack's own web server, PHP, and API restart in the background two seconds after the response.
Invalid name syntax or a request to restart an absent daemon returns HTTP 400.
Parameters
namepath ·string, matching ^[a-z][a-z0-9.-]{0,39}$RequiredUrbeStack daemon name returned by GET /services, such as postfix, php-8.3, panel-web, or mariadb.
waitinteger, 1 to 120Time to wait for the daemon to respond during startup.
Example
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X POST "$API/services/alice/restart" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"wait": 1
}'Response ·
200 OK{
"action": "text",
"daemon": {
"at_boot": true,
"check": {
"ok": true,
"words": "text"
},
"checked_by": "text",
"cuts": "text",
"depth": "answer",
"falls_30d": 1,
"group": "Panel",
"guard": 1,
"has_log": true,
"installed": true,
"last_check_at": "text",
"last_check_words": "text",
"last_restart_at": "text",
"may_disable": true,
"may_stop": true,
"name": "alice",
"need": "text",
"pid": 1,
"role": "user",
"rounds": 1,
"since": "text",
"state": "up",
"stopped_at": "text",
"stopped_by": "text",
"stopped_from": "text",
"systemd_restarts": 1,
"timeout": 1,
"unit": "text",
"version": "0.0.1",
"watched": true
},
"detached": true,
"result": "text",
"was": "text"
}Errors
2 errors, each a status and a sentence400A daemon is named with letters, digits, dots and hyphens401Authentication requiredNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/post-services-name-restart/