Update a Rule

Use secret API key to update a Rule resource.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
🚧

Account configuration is required before testing transactions

If you are interested in access to this feature, please contact [email protected]!

Updates an existing custom fraud rule by its ID. You can modify the rule’s conditions, logical operator, enabled status, action, and priority order. This endpoint supports iterative tuning of your fraud strategy—adjust thresholds, swap logical operators, or change actions as your risk tolerance and business needs change. Use it to keep your rules current and effective against evolving fraud tactics.

Example Response:

{
  "data": {
    "id": "frl_abcdefg123456",
    "type": "fraud.rule",
    "livemode": true,
    "enabled": true,
    "name": "My 1st Rule",
    "operator": "AND",
    "rules": [
      {
        "rule_attribute": "risk_score_gte",
        "rule_value": "700"
      },
      {
        "rule_attribute": "card_country_id",
        "rule_value": ["NG"]
      }
    ],
    "action": "block",
    "rule_order": 1,
    "created_at": "2025-07-21T10:01:23.456Z",
    "updated_at": "2025-07-22T09:15:12.789Z"
  }
}

See attribute details on List all rules.

Path Params
string
required

Id of a rule

Body Params
integer
Defaults to 1

Order of the rule attribute. The rule attribute determines the order; lower values are processed first.

boolean
Defaults to true

Enabled or disabled the rule.

string
Defaults to review

Action taken for this rule. Valid values allow, block, or review. Default is review.

string

Name of the rule.

rules
array of objects

List of rule attributes.

rules
string
Defaults to AND

Logical operator for the rules. Accepted value are "AND" and "OR".

Response

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json