This function edits a hosting plan (package).
Note:
name required | string The hosting plan's name. If the hosting plan does not exist, the system will create it. Example: name=package1 |
_PACKAGE_EXTENSIONS | string The hosting plan's package extensions. If you do not provide a value, the hosting plan will not include package extensions. Note:
_PACKAGE_EXTENSIONS=extension1 extension2 extension3 _PACKAGE_EXTENSIONS=extension1 |
integer or any or string Default: 1048576 The hosting plan's maximum bandwidth use, in megabytes (MB).
Note: The Example: bwlimit=1048576 | |
cgi | integer Default: 1 Whether CGI access is enabled for the hosting plan.
Note: When a server profile disables
the Web Server role, this parameter
defaults to Example: cgi=1 |
cpmod | string The hosting plan's cPanel theme. This parameter defaults to the server's default cPanel theme. Example: cpmod=jupiter |
digestauth | integer Default: 0 Whether to enable Digest Authentication for accounts on the hosting plan.
Example: digestauth=1 |
featurelist | string Default: "default" The hosting plan's feature list. If you do not use this parameter, the function assigns the Example: featurelist=default |
frontpage | integer Deprecated Default: 0 Whether Microsoft® FrontPage Extensions are enabled for the account. Note: cPanel & WHM ignores all FrontPage settings and parameters. Example: frontpage=0 |
hasshell | integer Default: 0 Whether the hosting plan allows shell access.
Example: hasshell=1 |
ip | string Default: "n" Whether the hosting plan uses a dedicated IP address.
Example: ip=n |
language | string <ISO-3166-1 (alpha-2)> The hosting plan's default locale. This parameter defaults to the server's default locale. Example: language=en |
integer or string Default: "unlimited" The percentage of failed or deferred email messages that an account on the hosting plan can send per hour before outgoing mail is rate-limited.
Example: max_defer_fail_percentage=unlimited | |
integer or string Default: "unlimited" The maximum number of emails that the hosting plan allows accounts to send in one hour.
Example: max_email_per_hour=unlimited | |
integer or any or string Default: 1024 The hosting plan's maximum email account quota size, in megabytes (MB).
Note:
Example: max_emailacct_quota=1024 | |
max_team_users | integer or null [ 0 .. 7 ] The hosting plan's maximum number of Team users. Example: max_team_users=7 |
integer or any or string Default: 0 The hosting plan's maximum number of addon domains.
Example: maxaddon=unlimited | |
integer or any or string Default: "unlimited" The hosting plan's maximum number of FTP accounts.
Example: maxftp=unlimited | |
integer or any or string Default: "unlimited" The hosting plan's maximum number of mailing lists.
Example: maxlst=unlimited | |
integer or any or string Default: 0 The hosting plan's maximum number of parked domains (aliases).
Example: maxpark=unlimited | |
integer or any or string Default: "unlimited" The hosting plan's maximum number of email accounts.
Example: maxpop=unlimited | |
integer or any or string Default: "unlimited" The hosting plan's maximum number of each available type of SQL database. For example, if you set this value to
Example: maxsql=unlimited | |
integer or any or string Default: "unlimited" The hosting plan's maximum number of subdomains.
Example: maxsub=unlimited | |
integer or any or string Default: 10240 The hosting plan's disk space quota, in megabytes (MB).
Note: The Example: quota=10240 |
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ editpkg \ name='package1'
{- "data": {
- "pkg": "package1"
}, - "metadata": {
- "command": "editpkg",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}