Change VPS plan (resize / convert)
change_planSwitch a VPS to another plan IN PLACE — files and the OS are kept; the server reboots once (~1 min). target_plan = product_id from get_upgrade_options. The prorated difference is charged from the prepaid balance right away (402 with needed/balance if it is short — top up and retry); convert_to_nat refunds the unused difference to the balance. The next renewal uses the new price. Same function as the cabinet's Upgrade panel. Set confirm: true. Requires: token + balance for the prorated difference + confirm: true. Typical errors: 402 (top up), 422 not an upgrade (pick from get_upgrade_options).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true — you agree to the charge and one reboot. | |
| service_id | No | Service code as returned by list_vps/order_vps, e.g. "68J67T5" (a plain numeric id is also accepted). | |
| target_plan | Yes | product_id from get_upgrade_options |