|
POST /api/v1/billing/user/manage/cameras |
Synchronizes the user's cameras by login.
A Bridge camera that has not been added to any location in the platform tree is not granted through `camera_ids` / `camera_external_ids`. Synchronization does not disassociate Bridge cameras or Camera (Agent) cameras owned by the user.
Camera access can be granted in several ways:
-
Without additional parameters (existing settings remain unchanged during synchronization):
{
"login": "test@mail.com",
"camera_ids": [
3,
4
],
"camera_external_ids": [
"00000000-0000-0000-0000-000000000050",
"00000000-0000-0000-0000-000000000051"
],
"public_group_external_ids": [
"df2f2f7a-ecd6-4ffd-8a23-6880b803d23a"
],
"private_group_external_ids": [
{
"key": "test",
"group_external_id": "df2f2f7a-ecd6-4ffd-8a23-6880b803d23a"
}
]
}
-
With additional camera parameters:
{
"login": "test@mail.com",
"camera_ids": [
{
"id": 3,
"status": "active"
},
{
"id": 4,
"status": "blocked"
},
{
"id": 5,
"status": "blocked"
}
],
"camera_external_ids": [
{
"external_id": "00000000-0000-0000-0000-000000000050",
"status": "active"
},
{
"external_id": "00000000-0000-0000-0000-000000000051",
"status": "blocked"
}
],
"public_group_external_ids": [
{
"external_id": "df2f2f7a-ecd6-4ffd-8a23-6880b803d23a",
"status": "blocked"
}
],
"private_group_external_ids": [
{
"key": "folder 1",
"group_external_id": "df2f2f7a-ecd6-4ffd-8a23-6880b803d23a",
"status": "active"
},
{
"key": "folder 2",
"group_external_id": "df2f2f7a-ecd6-4ffd-8a23-6880b803d23a",
"status": "blocked"
}
]
}
Method parameters
string login, User login
array camera_ids, Cameras identified by VMS database ID: a list of IDs or a list of objects with `id` and `status` fields
array camera_external_ids, Cameras identified by the ID specified at creation: a list of IDs or objects with `external_id` and `status` fields
array public_group_external_ids, Public camera groups: a list of group identifiers or objects with `external_id` and `status` fields
array private_group_external_ids, Private camera groups: a list of objects with `key`, `group_external_id`, and `status` fields
|
204 |
|
Successful response |
|
422 |
|
Returns a JSON error object. For more information, see General information > Validation. JSON
|