Skip to main content
POST
/
moscowroleplay
/
erlc
/
server
/
command
Execute Command on Server
curl --request POST \
  --url https://api.erlcrussia.xyz/v2/moscowroleplay/erlc/server/command \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "command": ":h Hello Everyone"
}
'
{
  "Status": "Queued",
  "QueueSize": 5
}

Authorizations

Authorization
string
header
required

Standard API key for accessing ER:LC endpoints.

Passed in Authorization: Bearer <key> header.

REQUIRED FOR ALL ER:LC ENDPOINTS.

Body

application/json
command
string
required

Command to execute on server.

Example:

":h Hello Everyone"

Response

Command successfully added to queue.

Status
string

Command status.

Example:

"Queued"

QueueSize
integer

Current command queue size.

Example:

5