Change PHP Version
kinsta_tools_php-versionSwitch the PHP version for a Kinsta environment to a specified version, returning an operation ID for tracking.
Instructions
Change the PHP version for an environment. Returns an operation_id.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"environment_id": "<environment_id>",
"php_version": "<php_version>"
},
"name": "kinsta_tools_php-version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| php_version | Yes | PHP version to switch to (e.g. 8.1, 8.2, 8.3) | |
| environment_id | Yes | The environment ID | |
| is_opt_out_from_automatic_php_update | No | Opt out of automatic PHP updates |