API for firewall rate limiting rules

api

#1

Hello!
One of my services attacked from time to time, attackers use email/password databases trying to guess logins/passwords for existing accounts on my service.
Thus, I’m limiting my /api/login endpoint using firewall rate limiting rule.

I want to enable and disable this rule using API, but I can’t found any documentation for this.

Is there any?

Thanks,


#2

I believe you’ll want to set disabled to true for the rule to turn it off.

https://api.cloudflare.com/#rate-limits-for-a-zone-create-a-ratelimit