cURL
curl --request PATCH \ --url https://api.example.com/api/servers/{serverId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "action": "start" } '
{ "data": { "id": "<string>", "status": "running", "startedAt": "2023-11-07T05:31:56Z", "stoppedAt": "2023-11-07T05:31:56Z" } }
Enter your API key here
ID of the server to control
start
stop
Server state changed successfully
Show child attributes
Was this page helpful?