v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
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.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

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
  }
}