Change PHP Version
kinsta.tools.php-versionChange the PHP version of a Kinsta environment. Specify environment ID and desired PHP version to update with optional opt-out from automatic updates.
Instructions
Change the PHP version for an environment. Returns an operation_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environment_id | Yes | The environment ID | |
| php_version | Yes | PHP version to switch to (e.g. 8.1, 8.2, 8.3) | |
| is_opt_out_from_automatic_php_update | No | Opt out of automatic PHP updates |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||