---
title: "Replace values for a data source"
method: PUT
path: "/v3/mapping_data_sources/{identifier}/values"
tags: ["Data Sources"]
---

# Replace values for a data source

`PUT /v3/mapping_data_sources/{identifier}/values`

Replaces the list of all values in a mapping data source
Note: For large data sources (e.g. > 1000 values), it can take a few minutes after the request completes for the new values to be searchable.

## Path parameters

- `identifier` string, required — Uniquely identify a mapping data source.

## Request body

- object[]

## Response `201`

Will return matching data source values

- object[]

## Other responses

- `400` — Bad request. If it is a validation error will contain a list of each invalid field
- `401` — Authorisation error
- `default` — UnexpectedError

---

[API](https://skmtc.net/affinda/apis/affinda-api-2.md) · [All operations](https://skmtc.net/affinda/apis/affinda-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/affinda/affinda-api-2/versions/6772e50cb58e/schema)
