---
title: "Adds the given map to the local user's favorites"
method: PUT
path: "/v1/user/maps/favorites/{mapID}"
tags: ["User"]
---

# Adds the given map to the local user's favorites

`PUT /v1/user/maps/favorites/{mapID}`

## Request

- Base URL: `https://api.momentum-mod.org` (the document declares no server; this is the origin it was published from)
- URL: `https://api.momentum-mod.org/v1/user/maps/favorites/{mapID}`
- Auth: HTTP bearer

## Path parameters

- `mapID` number, required

## Response `204`

Map was added to the favorites

## Other responses

- `400`: The map is already favorited
- `404`: The map does not exist

---

[API](https://skmtc.dev/momentum-mod/apis/momentum-mod-api.md) - [All operations](https://skmtc.dev/momentum-mod/apis/momentum-mod-api/llms.txt) - [OpenAPI document](https://skmtc.dev/momentum-mod/apis/momentum-mod-api/revisions/0a88cfbbcc65?raw)
