> For the complete documentation index, see [llms.txt](https://docs.multiset.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.multiset.ai/fundamentals/rest-api-docs/map-operations.md).

# Map Operations

File link, mesh replacement, and thumbnail endpoints, including how to swap a map's textured or raw mesh and update its thumbnail.

{% openapi src="/files/UV64lJchhd7SUxNgji6q" path="/file" method="get" %}
[filelink.yaml](https://3163433004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FokTDI7QVY04Zvb1pQ8Ry%2Fuploads%2FCTMTzA039Zqe3I3p1THH%2Ffilelink.yaml?alt=media\&token=213cb0b1-3e53-4e31-a643-870c715cf75b)
{% endopenapi %}

### Replace a map's mesh

Use `/vps/map/{mapCode}/mesh-upload-url` to replace a map's **textured** or **raw** mesh. The flow is:

1. `POST /vps/map/{mapCode}/mesh-upload-url` with the `meshType` you want to replace (`textured` or `raw`).
2. `PUT` the mesh file to the returned `uploadUrl`, using the `contentType` from the response as your `Content-Type` header. The URL is valid for 1 hour.

{% hint style="info" %}
You never construct a storage path. The upload location is derived from the map in the path, so the request can only replace that map's own mesh. The map must be **active**, and your role must allow write access (owner or admin).
{% endhint %}

{% openapi src="/files/cYpvLjgZRyUzuDKNwnnr" path="/vps/map/{mapCode}/mesh-upload-url" method="post" %}
[mesh-upload-url.yaml](https://3163433004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FokTDI7QVY04Zvb1pQ8Ry%2Fuploads%2Fgit-blob-5fcd439c933a2c5405a5e94d73dad63634020031%2Fmesh-upload-url.yaml?alt=media)
{% endopenapi %}

{% hint style="success" %}
Replacing a mesh does not affect localization accuracy. Queries run on the map's feature data, not on the mesh, so you can update the visual mesh at any time without re-processing the map.
{% endhint %}

### Update a map's thumbnail

Use `PUT /vps/map/{mapCode}/thumbnail` to replace a map's thumbnail. Send the image as `multipart/form-data` in the `thumbnail` field (JPEG, PNG, or WebP, up to 5 MB).

```bash
curl -X PUT "https://api.multiset.ai/v1/vps/map/MAP_740EYUJTS85Z/thumbnail" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -F "thumbnail=@thumbnail.jpg"
```

{% hint style="info" %}
The map must be **active**, and your role must allow write access (owner or admin).
{% endhint %}

{% openapi src="/files/9L4aRedH4L45SV9U8UY1" path="/vps/map/{mapCode}/thumbnail" method="put" %}
[map-thumbnail.yaml](https://3163433004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FokTDI7QVY04Zvb1pQ8Ry%2Fuploads%2Fgit-blob-f10840100c8268aad626a384f2911d3fd1e772a5%2Fmap-thumbnail.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/7h9I87pKfSRJ4vlJK1Kg" path="/vps/map/{mapCode}" method="delete" %}
[map-delete.yaml](https://3163433004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FokTDI7QVY04Zvb1pQ8Ry%2Fuploads%2Fgit-blob-99caa797ce8ad5d21789558c59d17d55623fc78b%2Fmap-delete.yaml?alt=media)
{% endopenapi %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.multiset.ai/fundamentals/rest-api-docs/map-operations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
