agency-hosting_updateWebsitePHPVersionV1
Switch an Agency Plan website to a target PHP version. Check compatibility first to prevent service disruption during the restart.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | PHP version to switch the website to, as major.minor. Must be one of the versions returned by the available versions endpoint. | |
| website_uid | Yes | Agency Plan website UID |