API Documentation

A documentation for developer

PHP Cli

Table of Contents:

PATCH Change PHP CLI version

HTTP Request

PATCH https://manage.runcloud.io/base-api/servers/<server.id>/phpcli

Arguments

Parameters Required Description
phpVersion YES You can get this value from Server Object in server._extra.php.versions

Request

curl -X PATCH "https://manage.runcloud.io/base-api/servers/yO4VAbX2BkNz/phpcli" \
    -u YOUR_API_KEY:YOUR_API_SECRET \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    --data '{
        "phpVersion": "php72rc"
    }'

Response

{
    "message": "Successfully changed PHP-CLI version to PHP 7.2. Changes will be reflected shortly.",
    "resetForm": false
}