Update reseller's hosting plan limits

This function limits the packages that a reseller assigns to cPanel accounts.

SecurityBasicAuth
Request
query Parameters
user
required
string <username>

The reseller's username.

Example: user=username
allowed
integer

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.

Enum: 0 1
Example: allowed=1
no_limit
integer
Default: 0

Whether to grant the reseller unlimited package use.

  • 1 — Grant the reseller unlimited package use.
  • 0 — Use package limits.
Enum: 0 1
Example: no_limit=0
number
integer >= 1

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.
Example: number=5
package
string

A hosting plan (package), to modify the reseller's access settings for it.

Note:

Use this parameter with the number or allowed parameters.

Example: package=package1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/setresellerpackagelimit
Request samples
whmapi1 --output=jsonpretty \
  setresellerpackagelimit \
  user='username'
Response samples
application/json
{
  • "metadata": {
    • "command": "setresellerpackagelimit",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}