Resellers
Account Limits
Update reseller's hosting plan limits
This function limits the packages that a reseller assigns to cPanel accounts.
get/setresellerpackagelimit
Query parameters
userstring username required
Example:username
The reseller's username.
allowed0 | 1
Example:1
Whether the reseller can access the package hosting plan.
- 1 — Enable access.
- 0 — Disable access
Note:
If you use this parameter, you must also include the package parameter.
no_limit0 | 1
Whether to grant the reseller unlimited package use.
- 1 — Grant the reseller unlimited package use.
- 0 — Use package limits.
numberinteger
Example:5
The maximum number of accounts to which the reseller can assign the package hosting plan.
Note:
- If you use this parameter, you must also include the package parameter.
- If you set a value for this parameter and set the allowed parameter to 0, the reseller cannot use the hosting plan.
packagestring
Example:package1
A hosting plan (package), to modify the reseller's access settings for it.
Note:
Use this parameter with the number or allowed parameters.
Response
HTTP Request was successful.
Example response
{
"metadata": {
"command": "setresellerpackagelimit",
"reason": "OK",
"result": 1,
"version": 1
}
}