Updating a map
Headers | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
mapoptional | int | Map identifier to retrieve | |||||||
imagerequired | binary | Map image. Send the image only if it needs to be changed | |||||||
namerequired | string | Map name | |||||||
camerasrequired | array | Array of cameras with x and y coordinates on the image and rotation angle, these data are needed to render the cameras on the image | |||||||
latituderequired | double | Latitude coordinate of the location plan | |||||||
longituderequired | double | Longitude coordinate of the location plan |
Response | |||||||||
200 | Successful response | ||||||||
JSON
| |||||||||
404 | If the map 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
|