Add hosting plan extension

This function adds a package extension to a hosting plan (package).

Notes:

  • If you need to edit a package extension's parameters, call this function again with the same package extension name and the updated package extension variables.

  • You can include the extension's variables in your function call, in key=value format. Consult the extension's documentation for a list of possible variables. Extension variables are case-sensitive.

SecurityBasicAuth
Request
query Parameters
_PACKAGE_EXTENSIONS
required
string

The hosting plan's package extensions.

Note:

  • Use space-delimited format to add multiple package extensions.
  • Extension names are case-sensitive.
Examples:
name
required
string

The hosting plan's name.

Note:

You cannot use the extensions name for a hosting plan.

Example: name=package1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/addpkgext
Request samples
whmapi1 --output=jsonpretty \
  addpkgext \
  name='package1' \
  _PACKAGE_EXTENSIONS='extension1'
Response samples
application/json
{
  • "data": {
    • "pkg": "package1"
    },
  • "metadata": {
    • "command": "addpkgext",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}