Skip to main content
PATCH
curl

Authorizations

x-api-key
string
header
required

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

Headers

Idempotency-Key
string

Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.

Required string length: 1 - 255

Path Parameters

rule_uuid
string<uuid>
required

The rule's uuid from list or create.

Body

application/json

Partial update. Custom rules accept every field; library (PRESET) rules accept only mode - anything else returns 400.

title
string

Rule name. Unique per application among non-deleted rules; duplicates return 400.

description
string | null
category
string

Risk theme used for grouping and reporting, e.g. finance, aml_ctf, anomaly_detection, fatf, device_intelligence, crypto_monitoring, travel_rule, responsible_gaming, e_commerce.

mode
enum<string>

ACTIVE evaluates live. TEST evaluates and records rule runs but never touches score or status - the recommended starting mode. DISABLED is skipped.

Available options:
ACTIVE,
DISABLED,
TEST
evaluation_mode
enum<string>
default:ALL

Whether every condition must match (ALL) or at least one (ANY). Ignored when conditions use group_index.

Available options:
ALL,
ANY
scope
object

Which transactions the rule applies to. Only these three keys are accepted.

conditions
object[]
aggregation
object[]
actions
object[]

One rule action. A rule can carry several; all are applied together when it matches. Rules in TEST mode record what they would have done without applying any action.

metadata
object

Free-form metadata stored on the rule.

Response

The updated rule.

uuid
string<uuid>
title
string

Rule name. Unique per application among non-deleted rules; duplicates return 400.

description
string | null
category
string

Risk theme used for grouping and reporting, e.g. finance, aml_ctf, anomaly_detection, fatf, device_intelligence, crypto_monitoring, travel_rule, responsible_gaming, e_commerce.

mode
enum<string>

ACTIVE evaluates live. TEST evaluates and records rule runs but never touches score or status - the recommended starting mode. DISABLED is skipped.

Available options:
ACTIVE,
DISABLED,
TEST
evaluation_mode
enum<string>
default:ALL

Whether every condition must match (ALL) or at least one (ANY). Ignored when conditions use group_index.

Available options:
ALL,
ANY
scope
object

Which transactions the rule applies to. Only these three keys are accepted.

conditions
object[]
aggregation
object[]
actions
object[]

One rule action. A rule can carry several; all are applied together when it matches. Rules in TEST mode record what they would have done without applying any action.

metadata
object

Free-form metadata stored on the rule.

severity
enum<string> | null

Informational severity carried by library rules; not settable on custom rules.

Available options:
UNKNOWN,
LOW,
MEDIUM,
HIGH,
CRITICAL
source
enum<string>

PRESET rules come from the library (install/uninstall, mode-only edits); CUSTOM rules are fully yours.

Available options:
PRESET,
CUSTOM
library_key
string | null

Stable library identifier; null for custom rules.

latest_triggered_at
string<date-time> | null
run_count
integer

How many transactions matched this rule.

approved_count
integer
reviewed_count
integer
declined_count
integer
awaiting_user_count
integer
approved_pct
number
reviewed_pct
number
declined_pct
number
created_at
string<date-time>
updated_at
string<date-time>
Last modified on November 1, 2026