cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Package → Update user hosting plan

AI-generated

Summary

Update the hosting plan assigned to a specific cPanel account by specifying the new plan name and the username of the account to change.

Inputs

  • Pkg (required) — The name of the new hosting plan to assign to the cPanel account.
  • User (required) — The username of the cPanel account whose hosting plan will be updated.

Output shape

a single response object from WHM API indicating success or failure of the hosting plan update request

The operation returns the raw response from the WHM API for the package change action. Errors from the API are validated and surfaced if present.

Links

Discussion