Creating a layout
Creating a layout. Empty layouts without cameras can be created
POST/api/v1/layoutsHeaders | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
namerequired | string | Layout name, it must be unique for the user | |||||||
layout_templaterequired | string | Unique identifier of the layout template. The list can be found in Main configurations | |||||||
gridrequired | string | Array of objects for each layout cell. If a cell is left empty, send null instead of an object |
Response | |||||||||
200 | Successful response | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|