This function sets an option's value in WHM's
Tweak Settings
interface (WHM >> Home >> Server Configuration >> Tweak Settings). The
system stores the keys and values that this function updates in
the
/var/cpanel/cpanel.config
file.
key required | string The Example: key=proxysubdomains |
module | string Default: "Main" Enum: "Apache" "Basic" "Mail" "Main" Example: module=Main |
value | string The value to assign to the setting. If you include this parameter in the call but do not set a value, the value defaults to an empty value. Note: For more information about the requirements for values in the Example: value=0 |
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ set_tweaksetting \ key='proxysubdomains'
{- "metadata": {
- "command": "set_tweaksetting",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}