Send action

Send power action

1
curl "https://garry.host/api/client/servers/<id>/power" \
2
-H "Authorization: Bearer api" \
3
-H "Content-Type: application/json" \
4
-H "Accept: Application/vnd.pterodactyl.v1+json" \
5
-X POST \
6
-d '{ "signal": "start" }'
Copied!
This endpoint sends a power signal to the server.
You are required to add the Accept: Application/vnd.pterodactyl.v1+json and Content-Type: application/jsonheaders for this endpoint.
If successful, there will be an empty response body.

HTTP Request

POST https://garry.host/api/client/servers/<ID>/power

URL Parameters

Parameter
Description
ID
The ID of the server that you are requesting.
signal
The power signal you want to send to the server.

Power Signals

Signal
Description
start
Sends the startup command to the server.
stop
Sends the stop command to the server.
restart
Stops the server then immediately starts it straight after.
kill
Instantly ends all processes and marks the server as stopped.
Sending the kill power signal will forcefully kill the server process and can cause corruption in files, only use it as a last resort.
Dernière mise à jour 2yr ago
Copier le lien