---
title: "Upsert Static Data Map Entries"
method: PUT
path: "/data_maps/{data_map_id}/entries"
tags: ["Data Maps"]
---

# Upsert Static Data Map Entries

`PUT /data_maps/{data_map_id}/entries`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/data_maps/{data_map_id}/entries`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/data_maps/:data_map_id/entries/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the entries in a static data map. Use this endpoint to add new entries or update the row corresponding to a specific key.

## Path parameters

- `data_map_id` integer, required

## Headers

- `Accept` 'application/vnd.nexla.api.v1+json' | 'application/json': Setting to `application/vnd.nexla.api.v1+json` is recommended.

## Request body

- object
  - `entries` object[]: Enter the array of data map entries that you wish to upsert. This call will result in an upsert on the data map, i.e., new rows will be added for keys not present in the data map, and relevant rows will be updated for keys that are already present.

## Response `200`

Success

- object[]

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/nexla/apis/nexla-rest-api.md) - [All operations](https://skmtc.dev/nexla/apis/nexla-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nexla/apis/nexla-rest-api/revisions/ef02be92fe7b?raw)
