---
title: "Update a camera"
method: PATCH
path: "/cameras/{id}"
tags: ["Cameras"]
---

# Update a camera

`PATCH /cameras/{id}`

## Path parameters

- `id` integer, required

## Request body

- object
  - `camera` object, required
    - `clip_duration` integer — Duration in seconds of the video clip to take.
    - `description` string, nullable — The description of the camera
    - `metadata` object — The metadata for the camera. - Only basic types are allowed: string, null, integer, float, boolean. - Keys have a limit of 50 characters. - Values have a limit of 500 characters. - Keys number is limited to 50.
    - `enabled` boolean — Whether the camera is enabled or not. Only enabled cameras takes snapshots.
    - `lock_id` integer, nullable — The lock ID of the camera
    - `name` string — The name of the camera
    - `number_of_snapshots` integer — The number of snapshots to fetch.
    - `snapshot_offset` integer — Offset in seconds of the clock of the camera if it has a drift from the API.
    - `supports_clips` boolean — Whether the camera supports clips.
    - `supports_images` boolean — Whether the camera supports images.
    - `supports_thumbnails` boolean — Whether the camera supports thumbnails.
    - `status` 'online' | 'offline' — Whether the camera is online or offline.

## Response `204`

No Content

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Content

---

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