StatsManager
Weblog Settings
Save current user's weblog analyzers configuration
This function saves the users choice about which web log anayzers are enabled for each domain on their cPanel users account. If the log anayzers are controlled by the reseller or root account, the user cannot manage which log analyzers are enabled or disabled.
Important:
When you disable the WebServer role the system disables this function. For more information, read our How to Use Server Profiles documentation.
post/StatsManager/save_configuration
Request body
Example request
{
"changes": [
{
"analyzers": [
{
"enabled": 1,
"name": "awstats"
},
{
"enabled": 0,
"name": "analog"
},
{
"enabled": 0,
"name": "webalizer"
}
],
"domain": "domain.com"
}
]
}Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "save_configuration",
"module": "StatsManager",
"result": {
"data": [
{
"analyzers": [
{
"available": 1,
"enabled": 1,
"locked": 0,
"name": "awstats"
},
{
"available": 1,
"enabled": 0,
"locked": 0,
"name": "analog"
},
{
"available": 0,
"enabled": 0,
"locked": 0,
"name": "webalizer"
}
],
"domain": "user"
}
],
"metadata": {
"transformed": 1
},
"status": 1
}
}