Return whether queried features are enabled

This function allows you to search for cPanel account features and determine whether those features are enabled.

SecurityBasicAuth
Request
query Parameters
pattern
required
string

The feature's name that you wish to search.

Note:

To use a regular expression, you must set the is_regex parameter's value to true.

Example: pattern=mail
is_regex
integer
Default: 0

Whether the pattern parameter's value is a regular expression.

  • 1 - The pattern parameter's value is a regular expression.
  • 0 - The pattern parameter's value is not a regular expression
Enum: 0 1
Example: is_regex=0
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/Features/has_features_like
Request samples
uapi --output=jsonpretty \
  --user=username \
  Features \
  has_features_like \
  pattern='mail'
Response samples
application/json
{
  • "result": {
    • "data": {
      • "has_matching_features": 1
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}