Return Account Enhancements

This function retrieves all existing account enhancements on the system.

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  list_account_enhancements

Response samples

Content type
application/json
{
  • "data": {
    • "enhancements": {
      • "id": "sample-enhancement-id",
      • "name": "Sample Enhancement"
      }
    },
  • "metadata": {
    • "command": "list_account_enhancements",
    • "output": {
      • "warnings": [
        • "(XID svx4zp) The enhancement file “/var/cpanel/account_enhancements/enhancement 5000.json” contains an invalid enhancement “id”: “bad-id”."
        ]
      },
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}