Updates a specific recommendation rule
Name of the recommendation rule. Must be unique across the tenant. Auto generated if not provided.
Priority of the recommendation rule, which determines the order in which rules are evaluated. Rules are evaluated from smallest to biggest priority value and only the first rule to match will apply. Priority value must be unique.
Activity field matcher. Only one matcher can be defined per rule.
Allows you to simulate a rule and evaluate its impact before releasing it to production. The simulation occurs each time a recommendation is requested. If a preview rule matches the request (meaning, its priority is higher than all matching rules), the response will include this preview rule and what the recommendation would have been if all rules were in production.
- Sandbox environmenthttps://api.sbx.transmitsecurity.io/risk/v1/recommendation/rules/{rule_id}
- US production environmenthttps://api.transmitsecurity.io/risk/v1/recommendation/rules/{rule_id}
- EU production environmenthttps://api.eu.transmitsecurity.io/risk/v1/recommendation/rules/{rule_id}
- CA production environmenthttps://api.ca.transmitsecurity.io/risk/v1/recommendation/rules/{rule_id}
- AU production environmenthttps://api.au.transmitsecurity.io/risk/v1/recommendation/rules/{rule_id}
- JP production environmenthttps://api.gasne1-ts01.transmitsecurity.io/risk/v1/recommendation/rules/{rule_id}
- ip_cidrs
- device_ids
- device_fingerprints
- device_public_keys
- user_ids
- country_codes
- browser_names
- os_versions
curl -i -X PUT \
'https://api.sbx.transmitsecurity.io/risk/v1/recommendation/rules/{rule_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Block risky countries",
"priority": 10,
"matcher": {
"ip_cidrs": [
"string"
]
},
"recommendation": "CHALLENGE",
"enabled": true,
"mode": "PREVIEW"
}'