update_waf_rule_tool
Modify existing WAF custom rules in Cloudflare: change action, enable/disable, update expression or description with rule ID and zone.
Instructions
Update an existing WAF custom rule.
Provide either zone_id or zone_name, not both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | New action (optional) | |
| enabled | No | Enable or disable the rule (optional) | |
| rule_id | Yes | Rule ID (32-character hex string) | |
| zone_id | No | Zone ID (32-character hex string) | |
| zone_name | No | Zone name (domain like example.com) | |
| expression | No | New filter expression (optional) | |
| description | No | New description (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||