Update feature list

This function creates or updates a feature list.

SecurityBasicAuth
Request
query Parameters
featurelist
required
string

The feature list's name.

Example: featurelist=TheBlackLagoon
feature name
integer

Whether to include the feature in the feature list.

Notes:

This parameter's name is the feature's name. If you do not specify any features, the system will disable all features in the feature list.

Enum: 0 1
Example: feature name=1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/update_featurelist
Request samples
whmapi1 --output=jsonpretty \
  update_featurelist \
  featurelist='TheBlackLagoon'
Response samples
application/json
{
  • "data": {
    • "featurelist": "TheBlackLagoon",
    • "invalid_features": [
      • {
        • "invalid feature": 1
        }
      ],
    • "updated_features": {
      • "autoresponders": null,
      • "feature name": 1
      }
    },
  • "metadata": {
    • "command": "update_featurelist",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}