Skip to main content
Skip table of contents

Intercom «Intersvyaz»

Replacing the panel on the intercom while preserving the settings.

Permission required for this request: intercom-replace

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

Headers

Authorization

Bearer token

Accept

application/json

Body

json

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

schemarequired

string

URL scheme

iprequired

string

IP address

portrequired

integer

Port

loginrequired

integer

Login

passwordrequired

integer

Password

titlerequired

string

Intercom name

Response

200

Successful response

400

Request not executed

JSON
{
    "message": "Error message"
}
401

Authorization token is not provided or is invalid. Obtaining a token

Example

JSON
curl -k --location --request POST 'https://vms.local/api/admin/v1/intercoms/{intercom}/replace' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'Content-Type: application/json \
--data-raw '{
    "schema": "http",
    "ip": "127.0.0.1",
    "port": 8080,
    "login": "admin",
    "password": "qweasd",
    "title": "interconnection_intercom"
}'
JavaScript errors detected

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

If this problem persists, please contact our support.