Creating and linking keys to an apartment
When creating keys, they are initially registered on the intercom, and after a successful response from the intercom, they are registered on the platform.
POST/api/admin/v1/intercoms/{intercom}/keysHeaders | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
intercomoptional | int | Unique identifier of the intercom | |||||||
keysrequired | array | Array of intercom keys. The maximum number of keys in the array is 100 | |||||||
flatrequired | integer | the apartment to which the keys will be linked. See the List of intercom apartments |
Response | |||||||||
200 | A successful response will return all the created keys | ||||||||
JSON
| |||||||||
401 | Authorization token is not provided or is invalid. Obtaining a token | ||||||||
422 | Returns a JSON object with an error. Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|