Skip to main content
Skip table of contents

Включение пaнели домофона

Включение панели домофона

Пермишен для этого роута - intercom-status-management

POST /api/admin/v1/intercoms/{intercom}/enable

Параметры метода

int intercom, Уникальный идентификатор домофона

200 OK

Успешный ответ

JSON
{
    "id": 1,
    "title": "beward_1",
    "is_online": true,
    "is_registered": null,
    "is_restricted_live": false,
    "is_restricted_archive": false,
    "is_open_door_key": true,
    "is_open_door_code": true,
    "is_open_door_app": true,
    "is_open_door_face": false,
    "group_id": null,
    "camera_id": 13,
    "flat_from": null,
    "flat_to": null,
    "flat_offset": null,
    "department": null,
    "department_name": null,
    "department_type": null,
    "department_type_pretty": null,
    "uuid": "a05d8566-b7e8-476d-95ed-8a7a7679fe07",
    "address": null,
    "created_at": "2024-09-16T14:37:33.000000Z",
    "updated_at": "2024-10-01T08:25:18.000000Z",
    "deleted_at": null,
    "mac": null,
    "vendor": "beward",
    "vendor_pretty": "Beward",
    "status": "inactive",
    "status_pretty": "Inactive",
    "switch": null,
    "switch_pretty": null,
    "schema": "http",
    "ip": "127.0.0.1",
    "port": 8080,
    "login": "login",
    "password": "password",
    "commutators_count": null,
    "connection_type": null,
    "connection_type_pretty": null,
    "key_count": null,
    "is_analytic_available": true
}

401 Unauthorized

Токен авторизации не передан или не валидный

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/intercoms/{intercom}/enable' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "intercom": 0
}'
PHP
PHP
$data = array (
  'intercom' => 0,
);
$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/admin/v1/intercoms/{intercom}/enable', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.