ip
when specifying an IP address in the rule.{
"configuration": {
"target": "ip",
"value": "198.51.100.4"
},
"mode": "challenge",
"notes": "This rule is enabled because of an event that occurred on date X."
}
curl --location --request POST 'https://api.cloudflare.com/client/v4/accounts//firewall/access_rules/rules' \
--header 'Content-Type: application/json' \
--data-raw '{
"configuration": {
"target": "ip",
"value": "198.51.100.4"
},
"mode": "challenge",
"notes": "This rule is enabled because of an event that occurred on date X."
}'
{
"errors": [],
"messages": [],
"result": {},
"success": true
}