Skip to main content
Rules are workspace guidance the engine evaluates on every document. When a rule triggers, its score_delta moves risk_score, and the fired rule appears on the check under rules. Reading rules needs view_documents; creating, editing, and deleting them needs manage_documents. See Permissions.

List rules

Create a rule

Update / disable / delete

  • PATCH /api/v1/rules/{id}/ with any subset of fields (including status: "disabled")
  • PUT /api/v1/rules/{id}/ replaces the full rule. Omitted optional fields reset to their defaults, so use PATCH unless you are sending the whole object
  • DELETE /api/v1/rules/{id}/ soft-deletes the rule
Edits apply to documents analysed after the change. Checks already completed keep the rules and scores they were given.

Triggered rules on a check

Completed checks include a rules array of rules that fired:

Thresholds

Map risk_score to the check’s action field (approve / review / reject):
Score below pass_belowapprove. Below review_belowreview. Otherwise → reject. Changes apply to new analyses only; each check snapshots the cut lines it used.

Flag settings

Ignore specific flag codes for this workspace. Ignored flags are omitted from new checks and do not contribute to risk_score. Existing checks are unchanged.