latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Resellers
Account Limits

Update reseller's bandwidth and disk quotas

This function sets a reseller's bandwidth and disk quotas.

get/setresellerlimits

Query parameters

userstring username required
Example:username

The reseller's username.

account_limitinteger
Example:10

The reseller's maximum total number of accounts.

Important:

The system only enforces this maximum if you set the enable_account_limit value to 1.

bandwidth_limitinteger
Example:1073741824

The reseller's total bandwidth limit.

Important:

The system only enforces this limit if you set the enable_resource_limits value to 1.

diskspace_limitinteger
Example:1073741824

The reseller's total disk space usage limit.

Important:

The system only enforces this limit if you set the enable_resource_limits value to 1.

enable_account_limit1 | 0

Whether to limit the reseller's total number of accounts.

  • 1 — Limit.
  • 0 — Do not limit.

Note:

Use this parameter with the account_limit parameter.

enable_overselling1 | 0
Example:1

Whether the reseller can oversell accounts.

  • 1 — The reseller can oversell accounts.
  • 0 — The reseller cannot oversell accounts.

Important:

The system only enforces this limit if you set the enable_resource_limits value to 1.

enable_overselling_bandwidth1 | 0
Example:1

Whether the reseller can oversell bandwidth.

  • 1 — The reseller can oversell bandwidth.
  • 0 — The reseller cannot oversell bandwidth.

Important:

The system only enforces this limit if you set the enable_resource_limits and the enable_overselling values to 1.

enable_overselling_diskspace1 | 0
Example:1

Whether the reseller can oversell disk space.

  • 1 — The reseller can oversell disk space.
  • 0 — The reseller cannot oversell disk space.

Important:

The system only enforces this limit if you set the enable_resource_limits and the enable_oversellng values to 1.

enable_package_limit_numbers1 | 0

Whether to apply package limit numbers to the reseller.

  • 1 — Enable package limit numbers.
  • 0 — Disable package limit numbers.
enable_package_limits1 | 0

Whether to apply package limits to the reseller.

  • 1 — Enable package limits.
  • 0 — Disable package limits.
enable_resource_limits1 | 0
Example:1

Whether to limit the reseller's resources.

  • 1 — Limit resources.
  • 0 — Do not limit resources.

Note:

Use this parameter with the bandwidthlimit, diskspace_limit, enable_overselling, enable_overselling_bandwidth, enable_overselling_diskspace, enable_overselling, enable_package_limits, and enable_package_limit_numbers parameters.

Response

HTTP Request was successful.

Example response

{
  "metadata": {
    "command": "setresellerlimits",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}