API Manage Firewall Rules

I have a free cloudflare account, and I would like to use the API to manage firewall rules.

Which endpoints do I call to list and update Site::Firewall::Firewall Rules?

1 Like

Thank you for the link!

To update a firewall filter, I tried updating the rule, https://api.cloudflare.com/#firewall-rules-update-firewall-rules PUT zones/:zone_identifier/firewall/rules which didn’t work.

The proper endpoint to update a firewall rule filter is PUT zones/:zone_identifier/filters

1 Like

Yeah. Modifying the firewall rule expression requires “Filters” API endpoint.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.