---
title: "Edit a matching configuration"
method: PATCH
path: "/v1/matching/configs/{id}"
tags: ["Matching"]
---

# Edit a matching configuration

`PATCH /v1/matching/configs/{id}`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/matching/configs/{id}`
- Auth: HTTP bearer

Changes a saved matching configuration in place: name, target, reference
table, field mappings or threshold. Only the fields sent change; the next
run uses them, earlier runs keep their results. The same change the
matching editor in the app saves.

Requires the `records:write` scope. The person behind the credential must
hold the workspace `workspace` permission, and the workspace must manage
its own model configuration; otherwise 403 `insufficient_role`.
Send `Idempotency-Key` to make a retry return the first response instead
of applying the change again.

## Path parameters

- `id` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- MatchingConfigPatchRequest: Fields to change; omitted fields keep their value.
  - `name` string
  - `target_type` 'run' | 'documents'
  - `target_value` object: `{ "run_id": "<uuid>" }` or `{ "document_ids": ["<uuid>", ...] }` (at most 20,000 ids).
  - `reference_data_id` string, uuid, nullable: Reference table to match against; null unlinks it.
  - `field_mappings` object[]
  - `threshold` number

## Response `200`

Matching configuration updated.

- MatchingConfigResponse
  - `id` string, uuid, required
  - `name` string, required
  - `reference_data_id` string, uuid, required
  - `target_type` 'run' | 'schema' | 'document_filter'
  - `target_value` object: Target identifier payload (e.g. run_id, schema_id).
  - `field_mappings` MatchingFieldMapping[], required
    - `extracted_field` string: Name or id of the extracted field.
    - `reference_column` string: Reference dataset column to match against.
    - `match_type` 'exact' | 'fuzzy' | 'date_range' | 'numeric_range': Matching strategy applied to this pair.
    - `weight` number, float: Relative weight used to aggregate the final confidence.
  - `threshold` number, float, required: Auto-accept confidence threshold.
  - `created_at` string, date-time
  - `updated_at` string, date-time, nullable
  - `links` object
    - `self` string
    - `runs` string

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `409`: The request conflicts with the current resource state.
- `422`: The document could not be processed.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/matching/configs/:id/patch.md)

---

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