|
PATCH /api/v1/billing/intercoms/{intercom}/keys/{key} |
Updates an intercom MIFARE key. During an update, the old key is removed from the device and a new key is created through vendorFactory. The key value, apartment association, and name can be changed. The apartment can be specified by intercom_flat_id or by its number flat.
{
"key": "000000DDEEFF11",
"flat": 43,
"title": "New key"
}
Method parameters
int intercom required , Intercom ID (in the URL)
string key, New key value. Format depends on the vendor. If omitted, the existing value is retained.
int intercom_flat_id, Intercom apartment ID. Cannot be provided together with `flat`.
int flat, Apartment number. Cannot be provided together with `intercom_flat_id`.
string title, Key name (maximum 255 characters).
|
200 |
|
Key successfully updated JSON
|
|
404 |
|
Intercom or key not found |
|
422 |
|
Validation error or failure to update the key on the device. If adding the new key fails, the old key is restored on the device. JSON
|