Cloudflare 中文文档
Firewall Rules
编辑这个页面
跳转官方原文档
Set theme to dark (⇧+D)

PUT examples

​​ Update multiple rules

This example updates several firewall rules using a single API call.

You can include up to 25 rules in the JSON object array (-d flag) to update as a batch. The batch is handled as a transaction.

​​ Update a single rule

This example updates the firewall rule with ID {rule_id}.

You must include the following fields in the request body:

  • id
  • action
  • filter.id

All other fields are optional.