---
title: "Replaces the custom map overlays of the currently authenticated user with mapLayers."
method: PUT
path: "/api/v{version}/user/self/maplayers"
tags: ["User"]
---

# Replaces the custom map overlays of the currently authenticated user with mapLayers.

`PUT /api/v{version}/user/self/maplayers`

## Path parameters

- `version` string, required

## Request body

- object

## Response `200`

The map overlays were saved successfully and are returned.

- object

## Other responses

- `401` — The current user could not be identified.

---

[API](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2.md) · [All operations](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geoadmin/boreholes-rest-api-v2/versions/e6d0b4ee0f52/schema)
