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.

Authorizations:
Request Body schema: application/json

List of domains and what web log analyzers to change.

Array of objects

Responses

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object

Request samples

Content type
application/json
{
  • "changes": [
    • {
      • "analyzers": [
        • {
          • "enabled": 1,
          • "name": "awstats"
          },
        • {
          • "enabled": 0,
          • "name": "analog"
          },
        • {
          • "enabled": 0,
          • "name": "webalizer"
          }
        ],
      • "domain": "domain.com"
      }
    ]
}

Response samples

Content type
application/json
{
  • "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"
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}