---
title: "Start or restart counter proximity calibration"
method: POST
path: "/counters/{id}/proximity_calibration/"
tags: ["counters"]
---

# Start or restart counter proximity calibration

`POST /counters/{id}/proximity_calibration/`

## Path parameters

- `id` integer, required

## Query parameters

- `collect_track_data_seconds` integer, required
- `keep_old_track_data` boolean

## Request body

- CounterRequest
  - `active` boolean
  - `name` string, required
  - `comment` string — Extended description, up to 2048 characters
  - `detect_faces` boolean — `true` if face counting enabled
  - `detect_silhouettes` boolean — `true` if silhouette counting enabled
  - `detect_cars` boolean — `true` if cars counting enabled
  - `count_interval` integer, required
  - `roi` object, nullable — ROI XY coordinates for related cameras
  - `cameras` integer[], required — Count entities from these cameras (provide either `cameras` or `camera_groups` argument)
  - `detect_proximity` boolean — `true` if proximity detection enabled

## Response `200`

No response body

---

[API](https://skmtc.dev/ntechlab/apis/internal-api-documentation.md) · [All operations](https://skmtc.dev/ntechlab/apis/internal-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ntechlab/internal-api-documentation/revisions/fe217a895bc7/schema)
