Skip to main content
Skip table of contents

Replace a panel for a Sputnik intercom

Replacing the Sputnik 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
{
    "uuid": "017f4d16-6dd8-48b6-968e-b0f23740c517",
    "ip": "127.0.0.1",
    "port": 8080,
    "login": "admin",
    "password": "qwerty"
}

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

Parameters

string uuid, UUID панели


string ip, Camera IP address


integer port, Camera port


string login, Camera login


string password, Camera password

200 OK

Successful response

JSON
{
    "status": "ok"
}

200 OK

Successful response

JSON
{
    "message": "Message about success, but with some flaws"
}

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 '{
    "uuid": "string",
    "ip": "string",
    "port": "integer",
    "login": "string",
    "password": "string"
}'
PHP
PHP
$data = array (
  'uuid' => 'string',
  'ip' => 'string',
  'port' => 'integer',
  'login' => 'string',
  'password' => '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.