---
title: "Update Data Map Metadata"
method: PUT
path: "/data_maps/{data_map_id}"
tags: ["Data Maps"]
---

# Update Data Map Metadata

`PUT /data_maps/{data_map_id}`

## Request

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

Updates a data map in the authenticated user's account.

This endpoint is suitable for updating the metadata of a data map. We recommend using the data map entries update and delete endpoints to update data map rows.

## 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

- DataMapMutable
  - `name` string
  - `description` string
  - `map_primary_key` string: Key name which should be used as the primary key for looking up rows in this data map.
  - `data_defaults` object: The default values to use for any key if the key is not present in the corresponding row.
  - `emit_data_default` boolean: This property defines whether a lookup query should return values with applicable default values for missing properties in the row.
  - `tags` string[]

## Response `200`

Success

- DataMap
  - `id` integer
  - `name` string
  - `description` string
  - `public` boolean
  - `managed` boolean
  - `data_type` string
  - `data_format` string, nullable
  - `data_sink_id` string, nullable
  - `emit_data_default` boolean
  - `use_versioning` boolean
  - `map_primary_key` string
  - `data_defaults` object
  - `updated_at` string, date-time
  - `created_at` string, date-time
  - `owner` object
    - `id` integer
    - `full_name` string
    - `email` string, email
  - `org` OrgSimplified
    - `id` integer
    - `name` string
    - `email_domain` string
    - `email` string
    - `client_identifier` string
    - `org_webhook_host` string
  - `access_roles` string[]: This property reflects all the permissions the user/team/organization has to this resource. 1. `collaborator`: The user/team/organization can view the resource but not make any modifications to it. 2. `operator`: The user/team/organization can view the resource and can activate/pause it, but not make any other modifications to it. 3. `administrator`: The user/team/organization has complete administrative rights to this resource. 4. `owner`: This user created the resource and so has complete administrative rights to it.
  - `data_set_id` integer
  - `map_entry_count` integer
  - `map_entry_schema` object
  - `tags` string[]

## 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)
