Apartment selection
After successfully configuring the intercom, a push notification with the intercom object will be sent to the user's websocket channel (user.{ID}). The push notification will not be sent to the device that initiated this request.
The user will have access to the intercom camera for viewing, if it was not available previously.
The apartment number cannot be changed; you can only delete and re-add the intercom.
POST/api/v1/intercom/{intercom}/flatHeaders | |||||||||
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 | Intercom ID for which the apartment needs to be selected (status must be «key_confirmed») | |||||||
flatrequired | int | Apartment number from the available range of apartments for this intercom. The apartment number must also be unique; you cannot add the intercom twice with the same apartment number in different accounts |
Response | |||||||||
200 | Successful response | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
404 | If the intercom does not belong to the user or does not exist | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|