Server Power Actions
Servers
Server Power Actions
Control server power state (start, stop, restart, kill)
POST
Server Power Actions
Sends a power action command to the server. This endpoint communicates with the Wings daemon to control the server’s running state.
Authentication
Requires a valid session token and theserver.power permission on the specified server.
Path Parameters
Server identifier (short identifier or UUID)
Request Body
The power action to perform. Must be one of:
start- Start the server if it’s stoppedstop- Gracefully stop the serverrestart- Restart the server (graceful stop followed by start)kill- Forcefully terminate the server process
Response
Power action result
Example Requests
Example Response
Power Action Behavior
Start
Attempts to start the server if it’s currently stopped. If the server is already running, this may result in an error from the Wings daemon.Stop
Sends a graceful shutdown signal to the server process. The server application will receive a termination signal and have time to save data and shut down cleanly.Restart
Performs a graceful stop followed by a start. This is equivalent to running stop and then start sequentially.Kill
Forcefully terminates the server process without allowing it to shut down gracefully. Use this only when the server is unresponsive or when a normal stop fails.Error Responses
Invalid action value or missing server identifier
User lacks
server.power permission or Wings authentication failedServer not found or user does not have access
Wings daemon is unavailable or unreachable
Unknown error occurred while sending power action
Activity Logging
All power actions are logged to the server activity log. The activity entry includes:- Actor (user who performed the action)
- Action type (e.g.,
server.power.start) - Timestamp
- Metadata containing the specific power action