Matching

Edit a matching configuration

Changed on

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.

patch/v1/matching/configs/{id}

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

id, string uuid required
Example:a1b2c3d4-e5f6-7890-abcd-ef1234567890

Resource UUID.

Headers

Idempotency-Key, string

Unique key for idempotent requests, at most 64 characters (a longer key is refused with 400 invalid_idempotency_key before any work). A retry with the same key, request and API key within 24 hours returns the first response with Idempotent-Replayed: true; the same key on a different request or from another API key answers 422 idempotency_key_reused. On POST /v1/extract the key caches the extraction result for the workspace instead: any key of the workspace sending it gets that result with cached: true.

Request body

MatchingConfigPatchRequest required

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

Matching configuration updated.

MatchingConfigResponse required
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
threshold, number float required

Auto-accept confidence threshold.

created_at, string date-time
updated_at, string date-time nullable
links, object

Example response

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "Supplier lookup",
  "reference_data_id": "b8c9d0e1-f2a3-4567-bcde-678901234567",
  "target_type": "run",
  "field_mappings": [
    {
      "extracted_field": "vendor_name",
      "reference_column": "supplier_legal_name",
      "match_type": "exact",
      "weight": 0.6
    }
  ],
  "threshold": 0.85,
  "created_at": "2026-04-25T14:30:00.000Z",
  "updated_at": "2026-04-25T14:30:00.000Z"
}

Changes