---
title: "Update area properties"
method: PATCH
path: "/areas/{id}/"
tags: ["areas"]
---

# Update area properties

`PATCH /areas/{id}/`

Use this method to update an area properties.

## Path parameters

- `id` integer, required

## Request body

- PatchedAreaRequest
  - `name` string — Area name, up to 256 characters
  - `enabled` boolean — `true` if the area is enabled
  - `trigger_count_gt` integer, nullable — `gt` people on a frame are required for trigger activation
  - `trigger_count_lt` integer, nullable — `lt` people on a frame are required for trigger activation
  - `trigger_time` integer — Minimum time in seconds conditions should be met to activate triggers
  - `trigger_calendar` CalendarRequest[], nullable — Area activation calendar during which an area trigger can activate. Area trigger might remain active beyond calendar intervals if the trigger activation condition is still satisfied
    - `weekdays` WeekdaysEnum[], required
    - `start_at` string, required — Time in format `HH:MM` in `UTC`
    - `end_at` string, required — Time in format `HH:MM` in `UTC`
  - `camera_roi` AreaCameraLinkRequest[]
    - `roi` array[], nullable — ROI points XY coordinates. *Example*: `[[0, 1000], [1000, 1000], [1000, 0], [0, 0]]`
      - integer[]
    - `camera` integer, required

## Response `200`

- Area
  - `id` integer, required
  - `created_date` string, date-time, required — Area creation date
  - `modified_date` string, date-time, required — Area modification date
  - `name` string, required — Area name, up to 256 characters
  - `enabled` boolean — `true` if the area is enabled
  - `trigger_count_gt` integer, nullable — `gt` people on a frame are required for trigger activation
  - `trigger_count_lt` integer, nullable — `lt` people on a frame are required for trigger activation
  - `trigger_time` integer, required — Minimum time in seconds conditions should be met to activate triggers
  - `trigger_calendar` Calendar[], nullable — Area activation calendar during which an area trigger can activate. Area trigger might remain active beyond calendar intervals if the trigger activation condition is still satisfied
    - `weekdays` WeekdaysEnum[], required
    - `start_at` string, required — Time in format `HH:MM` in `UTC`
    - `end_at` string, required — Time in format `HH:MM` in `UTC`
  - `camera_roi` AreaCameraLink[], required
    - `roi` array[], nullable — ROI points XY coordinates. *Example*: `[[0, 1000], [1000, 1000], [1000, 0], [0, 0]]`
      - integer[]
    - `camera` integer, required
  - `scheduled_now` boolean, required
  - `camera_groups` integer[], required
  - `cameras` integer[], required — Monitor area for these cameras
  - `multi_camera` boolean, required

---

[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)
