Change a custom web application firewall rule. Omitted fields stay as they are.
API key access: full.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
application/jsonChange a custom web application firewall rule. Omitted fields stay as they are.
API key access: full.
op*"updateWafRule""updateWafRule"id*stringname?string|nullmatch?string|nullconditions?array<>|nullaction?string|nullenabled?boolean|nullDone. Always ok: true, and some operations add more, such as a new API key or a join command. A warning comes with a change that went through but won't fully take effect yet, such as more replicas than the servers have room for.
application/jsoncurl -X POST 'https://your-pyo.example.com/api/v1/ops' \
-H 'Content-Type: application/json' \
-d '{
"action": "example",
"conditions": [],
"enabled": true,
"id": "wfr_8kq2x7ad",
"match": "example",
"name": "web",
"op": "updateWafRule"
}'{}