Skip to main content
POST
/
servers
/
{id}
/
power
Send power action
curl --request POST \
  --url https://your-domain.com/api/client/v1/servers/{id}/power \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "start"
}
'
{
  "ok": true,
  "action": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Server UUID.

Body

application/json
action
enum<string>
required
Available options:
start,
stop,
restart,
kill

Response

Power action accepted

ok
boolean
action
string
message
string