Get a cаmera flat trеe
Get a camera flat tree
The has_cameras
parameter can be used to determine whether a group contains cameras.
If a user has bridges with cameras, the user will see individual folders for each bridge. The name of this folder will be as the bridge name. To access the cameras within a bridge, a separate request is required.
The id
filed of groups can be int and string.
To retrieve a list of cameras from a leaf node, a group camera list query must be executed. The query should include group_id
and any relevant search
parameters if earlier a search was applied in the camera tree ad in VMS Client/Cameras/Common queries/List of cameras in the client group.
GET /api/v2/cameras/flat-tree |
Parameters
string search
– search by address and camera name.
int page
– a page number in pagination.
int per_page
– a number of elements per pagination page. By default, 10 elements.
200 |
Returns a JSON tree object of the same nesting level
JSON
|
401 |
The Authorization token isn’t sent or invalid. |
422 |
Returns a JSON object with an error.
JSON
|