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.
_PACKAGE_EXTENSIONS required | string The hosting plan's package extensions. Note:
|
name required | string The hosting plan's name. Note: You cannot use the Example: name=package1 |
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ addpkgext \ name='package1' \ _PACKAGE_EXTENSIONS='extension1'
{- "data": {
- "pkg": "package1"
}, - "metadata": {
- "command": "addpkgext",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}