Can't edit/update firewall black IP's

You need to update the filter. Here are the two steps I use for updating my ASN rule:

# Get Filter ID
filterID=`curl -sX GET "https://api.cloudflare.com/client/v4/zones/$zoneID/firewall/rules?description=asn" \
     -H "X-Auth-Email: $email" \
     -H "X-Auth-Key: $key" \
     -H "Content-Type: application/json" \
     | jq -r .result[].filter.id`
curl -sX PUT \
     -H "X-Auth-Email: $email" \
     -H "X-Auth-Key: $key" \
     -H "Content-Type: application/json" \
     -d '{
    "id": "'"$filterID"'",
    "paused": false,
    "description": "ASN",
    "expression": "(MY EXPRESSION GOES HERE)"
}' "https://api.cloudflare.com/client/v4/zones/$zoneID/filters/$filterID"
1 Like