Update an intercom (v2)
|
PATCH /api/v2/billing/intercoms |
With the release of request version v2, version v1 is being moved to legacy.
For new integrations, use the current v2.
Version v1 remains available to support existing integrations.
Unlike v1, instead of group_id/group_external_id the request accepts access_point_id — the UUID of the access point to which the intercom should be moved. When access_point_id is provided, the intercom is detached from its current access point and attached to the specified one.
The intercom is identified by id or mac; id and mac cannot be used together.
{
"id": 1,
"access_point_id": "00000000-0000-0000-0000-000000000002",
"flat_from": 1,
"flat_to": 15,
"new_serial_number": "new_serial_number",
"new_mac": "22:0D:CE:38:E7:15",
"model": "3516EV200",
"name": "intercom name",
"log_extra": {
"some": "information"
}
}
Method parameters
int id, Intercom ID.
string mac, Intercom MAC address.
string access_point_id, UUID of the access point to which the intercom should be moved (replaces the current association).
string name, Intercom name.
integer flat_from, First apartment number connected to the intercom.
integer flat_to, Last apartment number connected to the intercom.
string new_mac, New intercom MAC address.
string new_serial_number, New intercom serial number.
string model, Intercom model (required when updating `new_mac` or `new_serial_number`).
string|array log_extra, Additional information received from an external system.
array onvif_credentials, Credentials for accessing the camera through ONVIF.
boolean is_restricted_live, Restriction on viewing the intercom camera's live stream.
boolean is_restricted_archive, Restriction on viewing the intercom camera's archive recordings.
|
200 |
|
Successful response with updated intercom data JSON
|
|
422 |
|
Returns a JSON object containing an error. For a gate, For more information, see General information > Validation. JSON
|