Create feature list

This function creates or updates a feature list.

Note:

A reseller must possess the Add/Remove Package feature to use this function.

Authorizations:
query Parameters
featurelist
required
string

The feature list's name.

Example: featurelist=CustomFeatureList
featurelistname
integer
Default: 0

Whether to add a specific feature in the feature list.

  • 1 — Add the feature.
  • 0 — Do not add the feature.

Note:

  • The parameter's name is a feature's name. For example, the changemx=1 adds the Change Mail Exchanger feature to the feature list.

  • You can add or omit multiple features.

Enum: 1 0
Example: featurelistname=1
overwrite
integer
Default: 0

Whether to overwrite an existing feature list.

  • 1 — Overwrite.
  • 0 — Do not overwrite.
Enum: 1 0
Example: overwrite=1

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  create_featurelist \
  featurelist=Arthur webmail=1 changemx=1 overwrite=1

Response samples

Content type
application/json
{
  • "data": {
    • "featurelist": "Arthur"
    },
  • "metadata": {
    • "command": "create_featurelist",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}