Validate Account Enhancement assignment

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

Authorizations:
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

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

Request samples

uapi --output=jsonpretty \
  --user=username \
  AccountEnhancements \
  has_enhancement \
  id=account_enhancement

Response samples

Content type
application/json
{
  • "apiversion": 3,
  • "func": "list",
  • "module": "AccountEnhancements",
  • "result": {
    • "data": 1,
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}