26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Manage user's intercoms. API

Manage a user's intercoms

POST  /api/v1/billing/user/manage/intercoms

Synchronizes the associations between intercoms and the user's apartments by login.

JSON
{
    "login": "test@mail.com",
    "attach_permissions": true,
    "update": [
        {
            "intercom_external_id": "qweasdzxc",
            "flat": 15,
            "is_restricted_live": true,
            "is_restricted_archive": true,
            "is_open_door_key": false,
            "is_open_door_code": false,
            "is_open_door_app": true,
            "is_open_door_face": true,
            "landline_number": "+375291112233",
            "attach_camera": true
        },
        {
            "intercom_id": 1,
            "flat": 10,
            "is_restricted_live": true,
            "is_restricted_archive": true,
            "is_open_door_key": false,
            "is_open_door_code": false,
            "is_open_door_app": true,
            "is_open_door_face": true,
            "landline_number": null,
            "attach_camera": false
        }
    ],
    "delete": [
        1,
        2,
        3
    ]
}

Method parameters

string login, User login


array update, Array associating an intercom and an apartment with the user

object array

boolean update.attach_camera, Whether to grant the user access to the intercom camera


integer update.flat, Intercom apartment number


string update.intercom_external_id, Intercom identifier specified when the intercom was created. Required if `intercom_id` is not provided


integer update.intercom_id, Intercom identifier from the VMS database. Required if `intercom_external_id` is not provided


boolean update.is_open_door_app, Opening from the mobile app


boolean update.is_open_door_code, Opening by code


boolean update.is_open_door_face, Opening by face recognition. Cannot be enabled if face recognition opening is disabled on the platform and on the intercom (422)


boolean update.is_open_door_key, Opening by key


boolean update.is_restricted_archive, Disable archive access


boolean update.is_restricted_live, Disable live streaming


string update.landline_number, Landline phone number for the user's intercom apartment. If `null`, removes the landline number from the intercom apartment associated with the user


boolean attach_permissions, Whether to grant the user permission for the intercom


array delete, Array of intercom identifiers to disassociate from the user

object array

int delete.  required , Intercom identifier


204  No Content

Successful response

422  Unprocessable Entity

Returns a JSON error object.

For more information, see General information > Validation.

JSON
{
    "message": "No informative message is provided here",
    "errors": {
        "any_key": [
            "The reason for the error is described here"
        ]
    }
}
cURL
Bash
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/user/manage/intercoms' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "login": "string",
    "update": {
        "intercom_external_id": "string",
        "intercom_id": "integer",
        "flat": "integer",
        "is_restricted_live": "boolean",
        "is_restricted_archive": "boolean",
        "is_open_door_key": "boolean",
        "is_open_door_code": "boolean",
        "is_open_door_app": "boolean",
        "is_open_door_face": "boolean",
        "landline_number": "string",
        "attach_camera": "boolean"
    },
    "attach_permissions": "boolean",
    "update.intercom_external_id": "void",
    "update.intercom_id": "void",
    "update.flat": "void",
    "update.is_restricted_live": "void",
    "update.is_restricted_archive": "void",
    "update.is_open_door_key": "void",
    "update.is_open_door_code": "void",
    "update.is_open_door_app": "void",
    "update.is_open_door_face": "void",
    "update.landline_number": "void",
    "update.attach_camera": "void",
    "delete": {
        "": 0
    },
    "delete.": "void"
}'
PHP
PHP
$data = array (
  'login' => 'string',
  'update' => 
  array (
    'intercom_external_id' => 'string',
    'intercom_id' => 'integer',
    'flat' => 'integer',
    'is_restricted_live' => 'boolean',
    'is_restricted_archive' => 'boolean',
    'is_open_door_key' => 'boolean',
    'is_open_door_code' => 'boolean',
    'is_open_door_app' => 'boolean',
    'is_open_door_face' => 'boolean',
    'landline_number' => 'string',
    'attach_camera' => 'boolean',
  ),
  'attach_permissions' => 'boolean',
  'update.intercom_external_id' => 'void',
  'update.intercom_id' => 'void',
  'update.flat' => 'void',
  'update.is_restricted_live' => 'void',
  'update.is_restricted_archive' => 'void',
  'update.is_open_door_key' => 'void',
  'update.is_open_door_code' => 'void',
  'update.is_open_door_app' => 'void',
  'update.is_open_door_face' => 'void',
  'update.landline_number' => 'void',
  'update.attach_camera' => 'void',
  'delete' => 
  array (
    '' => 0,
  ),
  'delete.' => '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/intercoms', false, $context);