Skip to main content

Change Power State

This endpoint sends a power signal to the server.

Endpoint

POST /api/client/servers/{server}/power

Headers

  • Accept: application/json
  • Content-Type: application/json
  • Authorization: Bearer your_api_key

Example Request

curl -X POST "https://beta.fragify.net/api/client/servers/{server}/power"
-H "Authorization: Bearer your_api_key"
-H "Accept: application/json"
-H "Content-Type: application/json"
-d '{"signal": "start"}'

Fields

NameRequired?TypeDescriptionRules
signalrequiredstringPower signal to send

Signals

SignalDescription
startStarts the server
stopGracefully stops the server
restartStops then starts the server
killInstantly ends the server process