cameras

Update cameras

Update one or more cameras.

Update configuration, credentials, feature flags, and group assignments for one or more cameras. Each camera is updated independently - if one camera's update fails, others can still succeed. Within each camera's update, all changes are atomic.

Group Assignment:

  • Provide group_ids to assign the camera to specific groups
  • An empty list [] resets the camera to the default group
  • Omit group_ids (null) to leave group assignments unchanged

IP Address:

  • Provide ip to change the address the NVR connects to; it takes effect within a few minutes without any action on the NVR
  • The change applies to every head of a multi-head camera
  • On NVRs with automatic network scan enabled, discovery overrides the value if it does not match the IP the camera is actually reachable at
patch/v1/cameras

Request body

mac_addressstring required

Camera MAC address

namestring

New display name

ipstring

New camera IP address. Applied to every head of a multi-head camera. On NVRs with automatic network scan enabled, discovery overrides this value if it does not match the IP the camera is actually reachable at.

enforced_rtsp_urlstring

Custom RTSP URL to override auto-discovery. Provide the path component beginning with '/' (e.g. '/Streaming/Channels/101'); it is combined with the camera's IP, port and credentials at connection time. A full 'rtsp://host:port/path' URL is also accepted and reduced to its path.

group_idsinteger[]

List of group IDs to assign (empty list resets to default group)

Response

Successful Response

status'success'

Changes