---
title: "Save current user's weblog analyzers configuration"
method: POST
path: "/StatsManager/save_configuration"
tags: ["StatsManager", "Weblog Settings"]
---

# Save current user's weblog analyzers configuration

`POST /StatsManager/save_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.

## Request body

- object
  - `changes` object[]
    - `analyzers` object[] — List of log analyzer configuration objects.
      - `enabled` 1 | 0 — Whether the analyzer is turned on or off for the domain. - `1` - the analyzer is enabled. - `0` - the analyzer is disabled.
      - `name` 'analog' | 'awstats' | 'webalizer' — Name of the analyzer. It must be one of the following: - `analog` - Analog weblog analyzer. - `awstats` - AWStats weblog analyzer. - `webalizer` - The Webalizer weblog analyzer.
    - `domain` string — Domain you want to configure.

## Response `200`

HTTP Request was successful.

- object
  - `apiversion` integer — The version of the API.
  - `func` string — The name of the method called.
  - `module` string — The name of the module called.
  - `result` object
    - `data` object[] — A list of domains and the status of each of the web log analyzers available in cPanel for that domain.
      - `analyzers` object[] — List of log analyzer configuration objects for this domain
        - `available` 1 | 0 — Whether the analyzer is turned on or off for the whole server. - `1` - the analyzer is enabled on the server. - `0` - the analyzer is disabled on the server.
        - `enabled` 1 | 0 — Whether the analyzer is turned on or off for the domain. - `1` - the analyzer is enabled. - `0` - the analyzer is disabled.
        - `locked` 1 | 0 — Whether the analyzer can be turned on or off for the domain by the cPanel user. - `1` - the analyzer can be managed by the cPanel user. - `0` - the analyzer cannot be managed by the cPanel user. The reseller or `root` controls the configuration.
        - `name` 'analog' | 'awstats' | 'webalizer' — Name of the analyzer. It must be one of the following: - `analog` - Analog weblog analyzer. - `awstats` - AWStats weblog analyzer. - `webalizer` - The Webalizer weblog analyzer.
      - `domain` string — The domain.
    - `errors` string[], nullable — List of errors if the API failed.
    - `messages` string[], nullable — List of messages generated by the API.
    - `metadata` object
      - `transformed` 1 — Post-processing may have transformed the data.
    - `status` 0 | 1 — - 1 - Success - 0 - Failed: Check the errors field for more details.
    - `warnings` string[], nullable — List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
