v51

latestSwagger 2.0Eclipse Public License v2.0raw.githubusercontent.com2026-08-015880159.1 KB
runtime

RunPhpCommand

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 body

commandstring
hostnamestring
timeoutSecsinteger

Response

OK

exitCodeinteger
stdErrstring
stdOutstring