Getting a matrix
Matrix construction. The size of elements in the matrix may vary depending on the type of switch
POST/api/admin/v1/intercoms/{intercom}/common-matrixHeaders | |||||||||
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 | |||||||
switchrequired | string | Switch type. All types are listed in the Main configurations | |||||||
capacityrequired | integer | Number of flats within 1 switch, specified under the key intercom_flat_capacity in the Main configurations | |||||||
is_last_item_firstrequired | boolean | Is the last element of the matrix the first one | |||||||
matrix.*.flat_fromrequired | integer | Number of the first flat in the matrix |
Response | |||||||||
200 | Successful response | ||||||||
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
|