cPanel WHM icon

cPanel WHM

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

Actions262

Package → Create hosting plan

AI-generated

Summary

Create a new cPanel WHM hosting plan (package) with a specified name and optional configuration parameters that control resource limits and features.

Inputs

  • Name (required) — The unique name for the hosting plan; cannot be 'extensions' and cannot be changed after creation. Avoid including changeable details like price.
  • Additional Fields — Optional hosting plan settings such as bandwidth limit, disk quota, maximum emails per hour, number of addon domains, FTP accounts, shell access, language locale, feature list, and other resource limits and feature toggles.

Output shape

a JSON object representing the result of the create hosting plan operation, typically including success indicators or error messages from the WHM API

The returned data shape depends on the WHM API response. Errors related to invalid parameters or creation failure will be included in the response. Users must provide a unique plan name. Optional parameters corresponding to hosting plan features and quotas can be specified; otherwise, defaults are applied.

Examples

Example 1: Create a hosting plan with the name 'basic' and default settings.

Set 'Name' to 'basic'; leave additional fields empty.

Example 2: Create a hosting plan with a bandwidth limit of 5000 MB and enabled CGI.

Set 'Name' to desired plan name, set 'Bwlimit' to 5000, and 'Cgi' to 1 in additional fields.

Links

Discussion