Validate Account Enhancement assignment

This function returns whether a cPanel account has a specific Account Enhancement.

SecurityBasicAuth
Request
query Parameters
id
required
string

The identifier for a specific Account Enhancement.

Note:

To retrieve a list of all Account Enhancements IDs on the server, run the WHM API 1 list_account_enhancements function.

Example: id=sample-enhancement-id
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/AccountEnhancements/has_enhancement
Request samples
uapi --output=jsonpretty \
  --user=username \
  AccountEnhancements \
  has_enhancement \
  id=account_enhancement
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "list",
  • "module": "AccountEnhancements",
  • "result": {
    • "data": 1,
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}