Skip to main content
Skip table of contents

Replace a panel for a Beward intercom

Replace a Beward intercom panel

Replacing the panel on the intercom while saving the settings. The streams of the intercom camera will be generated from the data of the new panel (ip, login, password).

A required permission for the request is intercom-replace.

JSON
{
    "schema": "http",
    "ip": "127.0.0.1",
    "port": 8080,
    "login": "admin",
    "password": "qweasd",
    "title": "beward_intercom"
}

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

Parameters

string schema, URL schema


string ip, IP address


integer port, Port


integer login, Login


integer password, Password


string title, Intercom name

200 OK

Successful response

JSON
{
    "id": 1,
    "title": "beward_intercom",
    "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,
    "group": null,
    "camera": {
        "id": 13,
        "group_id": 41,
        "status": "deleted",
        "type": "media_server_v2",
        "start_at": null,
        "created_at": "2024-06-11T13:20:16.000000Z",
        "name": "Стенд 1 (DE/W(T5) + микрофон)",
        "streams": [
            {
                "id": 1,
                "type": "high",
                "camera_id": 1,
                "status": "active",
                "url": "rtsp://login:password@127.0.0.1:554/Streaming/Channels/101",
                "bitrate": null,
                "resolution": null,
                "output_rate": null,
                "ip": "192.168.204.33",
                "uuid": "18796c79-e22f-4eb1-a871-8bf6a37a1220",
                "streams_count": null,
                "server": {
                    "id": 1,
                    "domain": "server.domain.dev",
                    "status": true,
                    "is_enabled": null,
                    "has_cache": null,
                    "proxy": null,
                    "created_at": "2024-06-06T08:05:28.000000Z",
                    "updated_at": "2024-06-06T08:05:28.000000Z",
                    "user_type": null,
                    "group_type": null,
                    "streams_limit": null,
                    "bitrate_limit": null,
                    "extra": null,
                    "is_editable": null,
                    "is_stream_condition_management_enabled": null,
                    "is_callback_enabled": null
                },
                "sub_servers": [],
                "transfer_servers": [],
                "transfer_sub_servers": [],
                "created_at": "2024-09-10T09:58:47.000000Z",
                "updated_at": "2024-10-01T08:25:18.000000Z",
                "is_preview_from_server": true,
                "is_archive_from_server": null,
                "is_enabled": false,
                "is_can_transfer": true,
                "source": "auto",
                "is_sound_enabled": null,
                "reconnect_attempt": null,
                "reconnect_total": null,
                "reconnect_time": null,
                "disconnections_count": 0,
                "is_actual": true,
                "condition": "active",
                "stopped_at": "",
                "video_codec": null,
                "audio_codec": null
            },
            {
                "id": 2,
                "type": "low",
                "camera_id": 1,
                "status": "active",
                "url": "rtsp://login:password@127.0.0.1:554/Streaming/Channels/102",
                "bitrate": null,
                "resolution": null,
                "output_rate": null,
                "ip": "192.168.204.33",
                "uuid": "45015ac2-01c1-49b1-a763-e17f43224078",
                "streams_count": null,
                "server": {
                    "id": 1,
                    "domain": "server.domain.dev",
                    "status": true,
                    "is_enabled": null,
                    "has_cache": null,
                    "proxy": null,
                    "created_at": "2024-06-06T08:05:28.000000Z",
                    "updated_at": "2024-06-06T08:05:28.000000Z",
                    "user_type": null,
                    "group_type": null,
                    "streams_limit": null,
                    "bitrate_limit": null,
                    "extra": null,
                    "is_editable": null,
                    "is_stream_condition_management_enabled": null,
                    "is_callback_enabled": null
                },
                "sub_servers": [],
                "transfer_servers": [],
                "transfer_sub_servers": [],
                "created_at": "2024-09-11T08:24:35.000000Z",
                "updated_at": "2024-10-01T08:25:18.000000Z",
                "is_preview_from_server": true,
                "is_archive_from_server": null,
                "is_enabled": false,
                "is_can_transfer": true,
                "source": "auto",
                "is_sound_enabled": null,
                "reconnect_attempt": null,
                "reconnect_total": null,
                "reconnect_time": null,
                "disconnections_count": 0,
                "is_actual": true,
                "condition": "active",
                "stopped_at": "",
                "video_codec": null,
                "audio_codec": null
            }
        ],
        "can_edit": true,
        "origin": null,
        "group_type": "public",
        "ip": "192.168.204.33",
        "lat": 58.73447,
        "lng": 27.799226,
        "azimuth": null,
        "is_sensitive": false,
        "is_buffer_enabled": false,
        "is_public": 0,
        "archive_ranges": [],
        "archive_recording_timetable": null,
        "motion_detaction_timetable": [],
        "is_onvif_configured": true,
        "onvif_configuration": {
            "credentials": {
                "ip": "127.0.0.1,
                "port": "80",
                "login": "login",
                "password": "password",
                "auth_method": "digest",
                "onvif_network": null
            }
        },
        "streams_rtsp": {
            "low": "rtsp://login:password@127.0.0.1:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif",
            "high": "rtsp://login:password@127.0.0.1:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif"
        },
        "can_change_archive_timetable": true,
        "is_can_manage_archive_storage_days": true,
        "is_ip_reserved": false,
        "count_issues": 0,
        "source": "auto",
        "archive_storage_days": 1,
        "is_archive_recording": false,
        "is_can_manage_archive_recording": true,
        "archive_recording_type": "fulltime",
        "is_local_archive_enabled": false,
        "local_archive_storage_days": null,
        "is_increased_reconnect": 0,
        "is_sound_enabled": true,
        "profile": {
            "id": 1,
            "data": {
                "key1": "value1",
                "key2": "value2",
                "key3": "value3",
                "key4": "value4",
                "key5": "value5"
            },
            "created_at": "2024-06-11T13:20:16.000000Z"
        },
        "is_bridge": false,
        "is_agent": false,
        "is_auto_create_streams": true,
        "is_provisioning_enable": true,
        "is_can_manage_streams": false,
        "streams_source": "auto",
        "is_editable": true,
        "status_changed_at": "2024-08-22T14:03:43.000000Z",
        "is_intercom": true,
        "deleted_at": null,
        "is_need_replace": false,
        "is_visible_on_map": true
    },
    "collecting_keys": null,
    "door_open_time_general": null,
    "sip_credentials": null,
    "sip_options": null,
    "is_crossbar_switchers_enabled": false,
    "is_can_manage_matrix": false,
    "matrix": [],
    "created_at": "2024-09-16T14:37:33.000000Z",
    "updated_at": "2024-10-01T12:43:17.000000Z",
    "mac": null,
    "vendor": "beward",
    "vendor_pretty": "Beward",
    "status": "active",
    "status_pretty": "models.intercoms.statuses.active",
    "switch": null,
    "switch_pretty": null,
    "schema": "http",
    "ip": "127.0.0.1",
    "port": "8080",
    "login": null,
    "password": null,
    "commutators_count": null,
    "connection_type": null,
    "connection_type_pretty": null,
    "key_count": null,
    "is_analytic_available": true,
    "timetable": [],
    "analytic_groups": [],
    "device_info": {
        "collecting_keys": null,
        "door_open_time_general": null,
        "sip_credentials": null,
        "sip_options": null,
        "is_crossbar_switchers_enabled": false,
        "is_can_manage_matrix": false,
        "matrix": []
    }
}

400 Bad Request

Request failed

JSON
{
    "message": "Error message"
}

401 Unauthorized

Authorization token not sent or not valid

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

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

If this problem persists, please contact our support.