Restart service
Restarts a service on your server. Possible values: "mysql", "nginx", "supervisor".
POST/api/servers/{server}/services/{service}/restart
Restart a service
This endpoint allows you to restart a specific service on your server.
Required scopes
Manage servers
Request
POST
/api/servers/{server}/services/{service}/restartcurl -X POST "https://ploi.io/api/servers/{server}/services/{service}/restart" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Response
{
"status": "ok",
"message": "Service is being restarted."
}