# Return whether queried features are enabled

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

Endpoint: GET /Features/has_features_like
Version: 11.136.0.4
Security: BasicAuth

## Query parameters:

  - `pattern` (string, required)
    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: "mail"

  - `is_regex` (integer)
    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

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "has_features_like"

  - `module` (string)
    The name of the module called.
    Example: "Features"

  - `result` (object)

  - `result.data` (object,null)
    Object containing the result of the feature search.
    Example: {"has_matching_features":1}

  - `result.data.has_matching_features` (integer)
    Whether any features match the search pattern and are enabled.
* 1 - At least one matching feature is enabled.
* 0 - No matching features are enabled (either no matches or all matches are disabled).
    Enum: 0, 1

  - `result.errors` (array,null)
    List of errors if the API failed.

Common errors include missing pattern parameter or invalid regular expression syntax.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.status` (integer)
    Whether the API call was successful.
* 1 - Success. Features were searched and results returned.
* 0 - Failed. Check the errors field for details (e.g., missing pattern).
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.


