Update map
PATCH
/api/maps/{map_id}
Updates an existing map’s properties. Currently supports updating the map’s basemap style.
The basemap determines the background map tiles displayed beneath your data layers. Available basemap options for Mundi cloud are from MapTiler:
hybrid
- Satellite imagerybasic-v2
- Basic street map (default)dataviz
- Light basemap for data visualizationdataviz-dark
- Dark basemap for data visualizationoutdoor-v2
- Outdoor/terrain map
result = httpx.patch(
"https://api.mundi.ai/api/maps/MWfqcRak59bo",
json={"basemap": "hybrid"},
headers={"Authorization": f"Bearer {os.environ['MUNDI_API_KEY']}"}
).json()
assert result == {
"id": "MWfqcRak59bo",
"basemap": "hybrid",
"message": "Map updated successfully"
}
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” map_id
required
string
Request Body required
Section titled “Request Body required ”Responses
Section titled “ Responses ”Successful Response
Validation Error
HTTPValidationError
object
detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string