Change a firewall access rule. Omitted fields stay as they are (as in addFirewallRule).
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 firewall access rule. Omitted fields stay as they are (as in addFirewallRule).
API key access: full.
op*"updateFirewallRule""updateFirewallRule"id*stringaction?string|nulloperator?string|nullsources?array<string>|nullrequests?|int320 <= valueper?string|nullnote?string|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",
"id": "fwr_8kq2x7ad",
"note": "example",
"op": "updateFirewallRule",
"operator": "example",
"per": "example",
"requests": 1,
"sources": []
}'{}