---
title: "Reset site stats REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Reset site stats, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apisitesidstatsreset/"
---

# Reset site stats REST API

POST

/api/sites/{id}/stats/reset

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stats/reset';
const options = {
  method: 'POST',
  headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'},
  body: '{"confirm_domain":"example"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request POST \
  --url http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stats/reset \
  --header 'Content-Type: application/json' \
  --cookie hk_token=<hk_token> \
  --data '{ "confirm_domain": "example" }'
```

-

Irreversibly clears currently stored measured stats for a site while preserving the site configuration. Requires a human dashboard session with site.delete; API client bearer tokens are rejected.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

## Request Bodyrequired

application/json

object

**confirm_domain**

required

string

##### Examplegenerated

```
{
  "confirm_domain": "example"
}
```

## Responses

### 200

Reset summary

application/json

object

**families_cleared**

required

Array<string>

**imports_marked_deleted**

required

integer format: int64

**rows_cleared**

required

integer format: int64

**status**

required

string

Allowed values: reset

##### Example

```
{
  "status": "reset"
}
```

### 400

Invalid request or confirmation mismatch

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

### 403

Dashboard session required or forbidden

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

### 404

Site not found

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

### 500

Reset failed

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

[Previous Get site stats](https://hitkeep.com/api/operations/apisitesidstats/)[Next List tracking domain options](https://hitkeep.com/api/operations/apisitesidtracking-domain-options/)
