---
title: "Update PerfectMatch Batch Mapping"
method: PUT
path: "/perfect-match-mappings/{mappingId}/batch-mappings/{batchMappingId}"
tags: ["PerfectMatch Mapping"]
---

# Update PerfectMatch Batch Mapping

`PUT /perfect-match-mappings/{mappingId}/batch-mappings/{batchMappingId}`

Updates a PerfectMatch batch mapping.

Pay special attention to how [updating works](../docs/Updating-data-with-PUT.html).

## Headers

- `Authorization` string, required
- `X-LC-Tenant` string, required

## Request body

- PerfectMatchBatchMappingUpdateRequest
  - `languageDirections` LanguageDirectionRequest[], required
    - `sourceLanguage` SourceLanguageRequest, required
      - `languageCode` string, required — The language code.
    - `targetLanguage` TargetLanguageRequest, required
      - `languageCode` string, required — The language code.
  - `files` PerfectMatchFileMappingRequest[], required
    - `sourceFileId` string, required — The source file identifier.
    - `fileName` string, required — The file name.
    - `targetLanguages` TargetLanguageRequest[] — File target languages. If no languages are specified, all language directions from the batch mapping will be used.
      - `languageCode` string, required — The language code.
  - `matchingProjects` string[] — A collection of project identifiers that will be used to find matches and candidates for PerfectMatch mapping.

## Response `204`

No Content

## Other responses

- `400` — Error codes: * “invalid”: Invalid input in the query parameter mentioned in the “name” field on the error response.
- `401` — The user could not be identified.
- `403` — Error codes: * "forbidden": the authenticated user is not allowed to read the resource.
- `404` — Error codes: * "notFound": the resource could not be found by identifier.
- `409` — Error codes: * "updateNotAllowed": the resource could not be updated at this time.

---

[API](https://skmtc.net/rws/apis/trados-cloud-platform-api.md) · [All operations](https://skmtc.net/rws/apis/trados-cloud-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rws/trados-cloud-platform-api/revisions/d42dac7c28a3/schema)
