Updating a layout
Headers | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
layoutoptional | int | Identifier of the layout to be updated | |||||||
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
| |||||||||
404 | If the layout does not belong to the user or does not exist | ||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|