Skip to main content

Rule Holds & Cases

Read the business-rule holds that stop a pipeline's runs, let one held run proceed with a reason, and list or export the reconciliation cases its rules raised.

Business rules on a pipeline can stop new runs until something is fixed (a hold), and can raise reconciliation cases when documents disagree with each other or with your data. GET /v1/pipelines/{id}/rule-holds lists the holds with their state, why each opened, and the one-run overrides granted on it. While a hold is open, POST /v1/pipelines/{id}/start reports the groups it keeps back in held_runs.

POST /v1/pipelines/{id}/runs/{runId}/business-rule-holds/{holdId}/override lets exactly one held run proceed, with a reason that stays on the audit trail. The hold itself stays open, so later runs are still stopped. When the override admits the run, Talonic starts it straight away and reports how many documents it queued. Overrides need runs:write, and the key's person must be an Admin of the workspace, as in the web app; anyone else gets 403 insufficient_role.

GET /v1/pipelines/{id}/reconciliation-cases lists up to 500 cases the rules raised, newest first, with their state, owner and the facts and evidence behind them. GET /v1/pipelines/{id}/reconciliation-cases/export returns the full audit export of the same cases: snapshots, evidence, history and holds. The list needs any member; the export needs a person with the export permission, as in the web app.

GET/v1/pipelines/{id}/rule-holds

Hold fields

iduuidThe hold; pass it as holdId to override.
cardIdstringThe rule that opened it.
statestringOpen or released.
reasonType / reasonEventId / notificationEventIdstringWhy the hold opened, and the events behind it.
openedAt / releasedAt / releaseReasonstring | nullWhen it opened and, once released, when and why.
overrides[]arrayid, runId, actorId, reason, grantedAt, expiredAt.
POST/v1/pipelines/{id}/runs/{runId}/business-rule-holds/{holdId}/override

Body parameters

reason*stringWhy this run may proceed despite the hold, 3 to 2000 characters. Kept on the audit trail.

Response (200) — override

{
  "admitted": true,
  "remaining_hold_ids": [],
  "enqueued": 14
}
GET/v1/pipelines/{id}/reconciliation-cases
GET/v1/pipelines/{id}/reconciliation-cases/export
Moving a reconciliation case to another state (resolve, waive, reopen) is not available over the API yet; Talonic does it for now.

Frequently asked questions

Does an override release the hold?+
No. An override lets exactly one run proceed and is recorded with your reason. The hold stays open, so the next run is stopped again until the cause is fixed.
Why did my override return admitted: false?+
Another hold still stops the run. remaining_hold_ids names it; override that hold too, with its own reason, or fix its cause.
Who may export reconciliation cases?+
Anyone whose workspace role carries the export permission, as in the web app. A key never reaches further than its person: without that permission the export returns 403 insufficient_role even when the key has the read scope.