cURL
curl --request POST \ --url https://controller.platform.simplecloud.app/v0/servers/command \ --header 'Content-Type: application/json' \ --header 'X-Network-ID: <x-network-id>' \ --header 'X-Network-Secret: <x-network-secret>' \ --data '{}'
{ "command": "say Hello World", "message": "Command sent successfully", "server_id": "123e4567-e89b-12d3-a456-426614174000" }
Send a command to a running server via NATS
Network ID
Network Secret
Server ID
Command to send
The body is of type object.
object
OK
Response for sending a command to a server
"say Hello World"
"Command sent successfully"
"123e4567-e89b-12d3-a456-426614174000"
Was this page helpful?