Logo
Fastly Developer Hub API Documentation

Update the status of a rule

PATCH {{fastly_url}}/service/{{service_id}}/wafs/{{firewall_id}}/rules/{{waf_rule_id}}/rule_status

Update a rule status for a particular service, firewall, and rule.

Authorization: Requires API token, API token with at least Engineer permissions.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Host
string
Content-Type
string
Accept
string




RESPONSES

status





Curl
curl -X PATCH 'https://api.fastly.com/service//wafs//rules//rule_status' -H 'Host: api.fastly.com' -H 'Content-Type: application/vnd.api+json' -H 'Accept: application/vnd.api+json' -d '{"data":{"id":"RU1S0isxPaozGVKXdv0eY","type":"rule_status","attributes":{"status":"block"}}}'

ENDPOINTS