Update Map
PUT/api/v1/maps/update
Updates an existing map via ROS service call. Verifies the map exists in the database before calling the service.
Request
- multipart/form-data
Body
name stringrequired
Possible values: >= 3 characters and <= 50 characters
Name of the existing map to update
map_info stringrequired
JSON-stringified ROS OccupancyGrid map info, without the grid data — sent separately as the 'data' binary field.
data binary
Raw occupancy grid bytes: one signed byte (-1..100) per cell.
Responses
- 200
- 400
- 404
- 500
- 503
Map updated successfully
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
status numberrequired
data objectrequired
status booleanrequired
{
"success": true,
"message": "string",
"status": 0,
"data": {
"status": true
}
}
Map name missing or invalid
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Map not found in DB or ROS service call failed
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data nullrequired
status numberrequired
{
"success": true,
"message": "string",
"status": 0
}
ROS instance not available
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Loading...