Skip to main content
Skip table of contents

Cаmera management

Controlling User Cameras

Synchronizes the user's cameras according to their login.

JSON
{
    "login": "test@mail.com",
    "camera_ids": [
        1,
        2,
        3
    ],
    "camera_external_ids": [
        26,
        "27",
        28
    ],
    "public_group_external_ids": [
        7
    ],
    "private_group_external_ids": [
        {
            "key": "test",
            "group_external_id": 8
        }
    ]
}

POST /api/v1/billing/user/manage/cameras

Parameters

string login, User login


array camera_ids, List of camera IDs from the VMS database


array camera_external_ids, List of camera identifiers that were specified when creating the camera


array public_group_external_ids, List of IDs of public camera groups


array private_group_external_ids, List of identifiers of private camera groups

object array

string|intprivate_group_external_ids.REQUIRED

– group_external_id Private camera group ID


string|intprivate_group_external_ids.REQUIRED

, .group_external_id Private camera group ID


string|intprivate_group_external_ids.REQUIRED, .group_external_id Private camera group ID


204 No Content

Successful response

422 Unprocessable Entity

Returns a JSON object with an error.

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The cause of the error will be described here"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/user/manage/cameras' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "login": "string",
    "camera_ids": [],
    "camera_external_ids": [],
    "public_group_external_ids": [],
    "private_group_external_ids": {
        "": "string|int"
    },
    "private_group_external_ids.": "void"
}'
PHP
PHP
$data = array (
  'login' => 'string',
  'camera_ids' => 
  array (
  ),
  'camera_external_ids' => 
  array (
  ),
  'public_group_external_ids' => 
  array (
  ),
  'private_group_external_ids' => 
  array (
    '' => 'string|int',
  ),
  'private_group_external_ids.' => 'void',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/billing/user/manage/cameras', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.