Update Policy Rule
Edit a rule's fields. Updates require the whole-feature traffic_policies entitlement (403 without it) but do not re-check the per-rule-type plan gating — admins on a downgraded plan can keep editing rules of types they no longer have access to (but can't add new ones via create).
Every field is optional and applied only when present (a partial patch): name, expression, config, priority, enabled, and also phase and rule_type — both are mutable on update (when you send them they replace the stored value). The resulting config is re-validated against the (possibly new) rule type's schema and re-run through the AI safety check before persistence.
Path parameters
Request body
Same fields as create — all optional. Any of name, expression, config, priority, enabled, phase, rule_type that you send is applied; omitted fields keep their stored value. Strict decoding rejects unknown fields.
Response (200 OK)
The updated rule.
Errors
config, AI safety check failed, or invalid JSON.traffic_policies.