Reconciliation
Update matching rule Replace the name, description, or criteria of a matching rule.
PUT /reconciliation/matching-rules/{rule_id}
Authorization
If set, the API uses an API key for authentication. Include the following header in your requests: X-blnk-key: <api-key>.
Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code.
See also: Core API key .
The body replaces the stored rule. Send the full criteria list you want to keep.
Path
rule_idstring required path Id of the rule to update. An unknown id returns 404 with RECON_RULE_NOT_FOUND.
Body
namestring required body
descriptionstring body
criteriaobject[] required body Comparisons that must all match. Same fields as Create matching rule .
Criterion fieldstring required body amount, currency, date, reference, or description.
operatorstring required body equals, greater_than, less_than, or contains.
allowable_driftnumber body On equals, a fraction from 0 to 1 for amount, or seconds for date. On contains, divided by 100 and applied to the longer string when neither value includes the other.
Response
rule_idstring required Id of the rule. Unchanged by the update.
namestring required
descriptionstring
criteriaobject[] required The criteria that were stored. Each criterion also includes value and pattern. Matching does not read them.
created_atstring required When the rule was first created. Not changed by the update.
updated_atstring required When this update was saved.
curl -X PUT "http://localhost:5001/reconciliation/matching-rules/rule_890bdbc4-467f-4670-8424-5667e41daf29" \
-H "X-blnk-key: <api-key>" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated matcher",
"description": "Amount with 2% drift matcher",
"criteria": [
{
"field": "amount",
"operator": "equals",
"allowable_drift": 0.02
},
{
"field": "currency",
"operator": "equals"
},
{
"field": "reference",
"operator": "contains"
}
]
}'
{
"rule_id" : "rule_890bdbc4-467f-4670-8424-5667e41daf29" ,
"name" : "Updated matcher" ,
"description" : "Amount with 2% drift matcher" ,
"criteria" : [
{
"field" : "amount" ,
"operator" : "equals" ,
"value" : "" ,
"pattern" : "" ,
"allowable_drift" : 0.02
},
{
"field" : "currency" ,
"operator" : "equals" ,
"value" : "" ,
"pattern" : "" ,
"allowable_drift" : 0
},
{
"field" : "reference" ,
"operator" : "contains" ,
"value" : "" ,
"pattern" : "" ,
"allowable_drift" : 0
}
],
"created_at" : "2025-03-17T08:31:24.97610651Z" ,
"updated_at" : "2025-03-17T09:02:11.120441Z"
} {
"error" : "invalid operator" ,
"error_detail" : {
"code" : "RECON_RULE_INVALID" ,
"message" : "invalid operator"
}
} {
"error" : "Matching rule with ID 'rule_00000000-0000-0000-0000-000000000000' not found" ,
"error_detail" : {
"code" : "RECON_RULE_NOT_FOUND" ,
"message" : "Matching rule with ID 'rule_00000000-0000-0000-0000-000000000000' not found"
}
}
Related pages