Update a plan
Plan update
{
"image": "image binary data",
"name": "my card",
"cameras": [
{
"camera_id": 12,
"x": 0.2,
"y": 0.3,
"angle": 50,
"radius": 50.546,
"segment_angle": 80.332
}
],
"latitude": 25.645345244619257,
"longitude": -37.295444497828434
}
POST /api/v1/maps/{map} |
Parameters
int
map, ID of the plan to get
binary
image, Map image. You only need to send a picture if you need to change it. Possible formats - jpeg,bmp,png
string
name, Plan name, which must be unique within the current user
array
cameras, An array of cameras with x and y coordinates on the image with a rotation angle angle, and also radius (radius of view) and segment_angle (angle of rotation), this data is needed to draw cameras on the image.
double
latitude, Latitude coordinate of the plan location
double
longitude, Longitude coordinate of the plan location
int
group_id, ID of the Group belongs to the Map.
200 |
Successful response
JSON
|
404 |
If the card does not belong to the user or does not exist |
401 |
Authorization token not sent or not valid |
422 |
Returns a JSON object with an error.
JSON
|