PHP Management

Switch PHP version for a website

post/v1/hosting/websites/{website_id}/php-version/switch

Request

Path parameters

website_idinteger required

Headers

x-api-keystring required

API key for authentication

Request body

php_versionstring required

Target PHP version to switch to, valid versions need to be checked in the response of the /v1/hosting/supported-php-versions endpoint

Example request

{
  "php_version": "8.2"
}

Response

PHP version switched successfully

status'ok' | 'error'

Example response

{
  "status": "ok"
}

Changes

No recorded changes to this operation across all 1 revision of this API.