Update a Rule

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
Body Params
integer
Defaults to 1
boolean
Defaults to true
string
Defaults to review
string
rules
array of objects
rules
string
Defaults to AND
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