v51

OpenAPI 3.0.0raw.githubusercontent.com2026-08-01267339950.6 KB
Hosting: PHP

Update PHP version

Changes the PHP version of the website.

Use the Get PHP details endpoint to see the versions available for the website.

patch/api/hosting/v1/accounts/{username}/websites/{domain}/php/version

Path parameters

usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld

Domain name

Request body

versionstring required

PHP version to switch the website to.

Example request

{
  "version": "8.1"
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}