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.
|
POST /api/v1/billing/intercoms/{intercom}/keys |
Creates a MIFARE key for an intercom. The key is automatically sent to the device through vendorFactory. The apartment can be specified either by intercom_flat_id or by its number flat. The key format depends on the intercom vendor.
{
"key": "000000AABBCCDD",
"intercom_flat_id": 5,
"title": "Apartment 12 key"
}
Method parameters
int intercom required , Intercom ID (in the URL)
string key required , Key value. The format depends on the vendor: for Sputnik, a string of 2–16 characters; for others, HEX format `000000XXXXXXXX` (14 characters).
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 (optional, maximum 255 characters).
|
201 |
|
Key successfully created JSON
|
|
404 |
|
Intercom not found |
|
422 |
|
Validation error or failure to add the key to the device JSON
|