A cluster's gateway settings. Unset fields stay as they are. http3: HTTP/3 on UDP port 443 next to HTTPS. It needs public ports on and UDP port 443 free on the servers, and the servers' firewalls must let UDP 443 in. Turning it on or off drops open connections on each server's public ports once, one server at a time. tlsMin: "1.2" or "1.3". Changing it drops every open HTTPS connection once. compression: Zstd, Brotli and Gzip on services' HTTPS domains. requestTimeout (seconds, 1 to 3600, or 0 for no limit) and idleTimeout (how long a WebSocket or stream may stay quiet, 60 to 86400 seconds, at least the request timeout): the defaults for services without their own. Compression and the defaults change routes only, without dropping connections. drops in the answer says whether open connections drop once. Team owners and admins.
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/jsonA cluster's gateway settings. Unset fields stay as they are. http3: HTTP/3 on UDP port 443 next to HTTPS. It needs public ports on and UDP port 443 free on the servers, and the servers' firewalls must let UDP 443 in. Turning it on or off drops open connections on each server's public ports once, one server at a time. tlsMin: "1.2" or "1.3". Changing it drops every open HTTPS connection once. compression: Zstd, Brotli and Gzip on services' HTTPS domains. requestTimeout (seconds, 1 to 3600, or 0 for no limit) and idleTimeout (how long a WebSocket or stream may stay quiet, 60 to 86400 seconds, at least the request timeout): the defaults for services without their own. Compression and the defaults change routes only, without dropping connections. drops in the answer says whether open connections drop once. Team owners and admins.
API key access: full.
op*"setClusterGateway""setClusterGateway"clusterId*stringhttp3?boolean|nullcompression?boolean|nulltlsMin?string|nullrequestTimeout?|int320 <= valueidleTimeout?|int320 <= valueDone. 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 '{
"clusterId": "cl_8kq2x7ad",
"op": "setClusterGateway"
}'{}