Update account enhancement limit

This function sets account enhancement limits for a reseller account.

SecurityBasicAuth
Request
query Parameters
account
required
string <username>

The reseller's username.

Example: account=username
id
required
string

The account enhancement's identifier.

Note:

  • You must use an account enhancement ID that a 3rd-party plugin defines.
  • To return a list of valid account enhancement IDs, run the WHM API 1 list_account_enhancements function.
Example: id=sample-enhancement-id
limited
required
integer

Whether the Account Enhancement assignment limit is unlimited.

  • 0 - The assignment is unlimited.
  • 1 - The assignment is limited.
Enum: 1 0
Example: limited=1
limit
integer

The account enhancement limit amount. This parameter is only required if the limited parameter is 1.

Example: limit=15
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/set_enhancement_limit
Request samples
whmapi1 --output=jsonpretty \
  set_enhancement_limit \
  account='username' \
  id='sample-enhancement-id' \
  limited='1' \
  limit='15'
Response samples
application/json
{
  • "metadata": {
    • "command": "set_enhancement_limit",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}