Skip to main content
POST
/
v0
/
servers
/
command
Send command to server
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"
}

Headers

X-Network-ID
string
required

Network ID

X-Network-Secret
string
required

Network Secret

Query Parameters

server_id
string
required

Server ID

Body

application/json

Command to send

The body is of type object.

Response

OK

Response for sending a command to a server

command
string
Example:

"say Hello World"

message
string
Example:

"Command sent successfully"

server_id
string
Example:

"123e4567-e89b-12d3-a456-426614174000"