Update Tweak Settings option
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.
Request
- Base URLhttps://whm-server.tld:2087/json-api
- AuthHTTP basic
Query parameters
The cpanel.config setting name that corresponds to the desired setting in WHM's Tweak Settings interface (WHM >>Home >> Server Configuration >> Tweak Settings).
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 cpanel.config file settings, read our cpanel.config file documentation.
Response
HTTP Request was successful.
Example response
{
"metadata": {
"command": "set_tweaksetting",
"reason": "OK",
"result": 1,
"version": 1
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.