Agency Hosting: PHP

Update website PHP version

Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.

patch/api/agency-hosting/v1/websites/{website_uid}/php-settings/version

Path parameters

website_uidstring required
Example:zpwlGlp19

Agency Plan website UID

Request body

versionstring required

PHP version to switch the website to, as major.minor. Must be one of the versions returned by the available versions endpoint.

Example request

{
  "version": "8.2"
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}

Changes