runtime

Run a php command as the webserver user for a given hostname. <br />CAUTION: This endpoint allows for arbitrary code execution (ACE) and is therefore disabled by default. <br />To enable this endpoint, set the "ENABLE_API_RUNTIME_PHP_RUN_CMD" environment variable to "true" when starting the API/container.<br />Only super admin accounts can use this endpoint.

post/v1/runtime/php/run/

Request

  • Base URL
    https://localhost:1618/api
  • URL
    https://localhost:1618/api/v1/runtime/php/run/
  • Auth
    API key in header Authorization

Request body

commandstring
hostnamestring
timeoutSecsinteger

Response

OK

exitCodeinteger
stdErrstring
stdOutstring

Changes