update_waf_rule_tool
Update an existing Cloudflare WAF custom rule by modifying its filter expression, action, description, or enabled status. Specify rule ID and either zone ID or zone name.
Instructions
Update an existing WAF custom rule.
Provide either zone_id or zone_name, not both.
Args: rule_id: Rule ID (32-character hex string) zone_id: Zone ID (32-character hex string) zone_name: Zone name (domain like example.com) expression: New filter expression (optional) action: New action (optional) description: New description (optional) enabled: Enable or disable the rule (optional)
Returns: Updated rule details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | ||
| enabled | No | ||
| rule_id | Yes | ||
| zone_id | No | ||
| zone_name | No | ||
| expression | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||