---
title: "Set statistics parameters"
method: POST
path: "/stats_config"
tags: ["stats"]
---

# Set statistics parameters

`POST /stats_config`

## Request

- Base URL: `/control` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/control/stats_config`
- Auth: HTTP basic

## Request body

- StatsConfig: Statistics configuration
  - `interval` 0 | 1 | 7 | 30 | 90: Time period to keep the data. `0` means that the statistics is disabled.

## Response `200`

OK.

---

[API](https://skmtc.dev/guardllamanet/apis/adguard-home.md) - [All operations](https://skmtc.dev/guardllamanet/apis/adguard-home/llms.txt) - [OpenAPI document](https://skmtc.dev/guardllamanet/apis/adguard-home/revisions/14ff21aeb363?raw)
