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
boolean attach_permissions, Whether to grant the user permission for the intercom
array delete, Array of intercom identifiers to disassociate from the user
|
204 |
|
Successful response |
|
422 |
|
Returns a JSON error object. For more information, see General information > Validation. JSON
|