Send console command

HTTP Request

POST https://garry.host/api/client/servers/<ID>/command

URL Parameters

Parameter
Description
ID
The ID of the server that you are requesting.
command
The command that you would like sent to the server.
1
curl "https://garry.host/api/client/servers/<id>/command" \
2
-H "Authorization: Bearer api" \
3
-H "Content-Type: application/json" \
4
-H "Accept: Application/vnd.pterodactyl.v1+json" \
5
-X POST \
6
-d '{ "command": "say test" }'
Copied!
This endpoint sends a command to the server.
You are required to add the Accept: Application/vnd.pterodactyl.v1+json and Content-Type: application/jsonheaders for this endpoint.
If successful, there will be an empty response body. The server must be online already, otherwise you will receive a HTTP 412error.
Dernière mise à jour 2yr ago
Copier le lien