Update Account Enhancement

This function modifies an account enhancement.

Important:

  • When you call this function, you must include at least one of the id or name parameters. Lack of a second parameter will result in no change.
SecurityBasicAuth
Request
query Parameters
name
required
string

The name of the account enhancement.

Example: name=enhancement 5000
id
string

The account enhancement's new identifier.

Note:

  • You must use an account enhancements 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
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/modify_account_enhancement
Request samples
whmapi1 --output=jsonpretty \
  modify_account_enhancement \
  name='enhancement 5000' \
  id='sample-enhancement-id'
Response samples
application/json
{
  • "data": {
    • "id": "sample-enhancement-id",
    • "name": "Sample Enhancement"
    },
  • "metadata": {
    • "command": "modify_account_enhancement",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}