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
Example request
{
"version": "8.2"
}Response
Success empty response
Example response
{
"message": "Request accepted"
}