Skip to main content

Edit Matching Config

Change a matching configuration in place: name, target documents, reference table, field mappings or threshold. Only the fields you send change.

Change a saved matching configuration without recreating it. Send only the fields you want to change; everything else keeps its value. The next run of the configuration uses the new settings; earlier runs and their results stay as they were.

For workspace admins who manage their own matching setup, from code or an agent. It is the same change the matching editor in the app saves.

Requires the records:write scope. The person behind the key must hold the workspace workspace permission, and the workspace must manage its own model configuration; when Talonic manages it for you, the call returns 403 insufficient_role. Send an Idempotency-Key header to make retries safe.
PATCH/v1/matching/configs/:id

Body (all optional)

namestringNew name, 1 to 200 characters.
target_typestringrun (match one run's results) or documents (match a list of documents).
target_valueobjectThe target: { "run_id": "…" } or { "document_ids": ["…"] }. At most 20,000 document ids.
reference_data_idstring | nullReference table to match against; null unlinks it.
field_mappingsarrayPairs of an extracted field and a reference column.
thresholdnumberMinimum match score, 0 to 1.

curl

curl -s -X PATCH https://api.talonic.com/v1/matching/configs/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer tlnc_your_api_key" \
  -H "Idempotency-Key: edit-config-7f3a" \
  -H "Content-Type: application/json" \
  -d '{"threshold": 0.9}'

Response

Response fields

idstringConfig UUID.
namestringConfig name.
reference_data_idstring | nullLinked reference table.
target_typestringWhat the config matches.
target_valueobjectThe target.
field_mappingsarrayField-to-column pairs.
thresholdnumberMinimum match score.
updated_atstringISO 8601 time of this change.
links.selfstringURL of this config.

Errors

Error responses

400validation_errorInvalid field, too many document ids, or a non-UUID id.
403insufficient_scope | insufficient_role | no_personThe key lacks records:write, or its person may not change model configuration in this workspace.
404not_foundNo config (or reference table) with this ID in your workspace.
409idempotency_request_in_progressA request with the same Idempotency-Key is still running; retry shortly.
422idempotency_key_reusedThe Idempotency-Key was already used for a different request.

Frequently asked questions

Does editing a config change results I already have?+
No. Past runs keep their results. The change applies to the next run.
What happens if I retry the same edit?+
With the same Idempotency-Key and the same body, you get the first response back and the config is changed once.