---
title: "Update map"
method: PATCH
path: "/api/maps/{map_id}"
tags: ["Maps"]
---

# 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 imagery
- `basic-v2` - Basic street map (default)
- `dataviz` - Light basemap for data visualization
- `dataviz-dark` - Dark basemap for data visualization
- `outdoor-v2` - Outdoor/terrain map

```py
result = httpx.patch(
    "https://app.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"
}
```

## Path parameters

- `map_id` string, required

## Request body

- MapUpdateRequest
  - `basemap` string, nullable — Basemap style name

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/buntinglabs/apis/mundi-ai-developer-api.md) · [All operations](https://skmtc.net/buntinglabs/apis/mundi-ai-developer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/buntinglabs/mundi-ai-developer-api/versions/a74491e93dab/schema)
