Send console command

HTTP Request


URL Parameters

  curl "<id>/command" \
  -H "Authorization: Bearer api" \
  -H "Content-Type: application/json" \
  -H "Accept: Application/vnd.pterodactyl.v1+json" \
  -X POST \
  -d '{ "command": "say test" }'

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