cPanel WHM icon

cPanel WHM

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

Actions262

Package → Update hosting plan

AI-generated

Summary

Update or create a cPanel hosting plan by specifying its name and optional configuration fields.

Inputs

  • Name (required) — The hosting plan's name. If the plan does not exist, it will be created.
  • Additional Fields — Optional settings to configure the hosting plan, including bandwidth limit, CGI access, cPanel theme, feature list, shell access, dedicated IP usage, disk quota, email limits, domain limits, and other hosting parameters.

Output shape

A single JSON object representing the result of the update or creation operation returned by the WHM API.

All specified fields are sent as query parameters in the API request. If the hosting plan does not exist, it is created with these parameters. Optional fields default to their typical WHM defaults if not specified. The operation returns the WHM API response, which includes success or error indication.

Examples

Example 1: Update an existing hosting plan to set a bandwidth limit and enable CGI access

Name set to existing hosting plan name; Additional Fields set with Bwlimit to desired megabytes and Cgi to 1.

Example 2: Create a new hosting plan with specific resource limits

Name set to new hosting plan name; Additional Fields set with disk quota, max email per hour, max FTP accounts, and feature list.

Links

Discussion