A team's observability: what its servers collect and keep. Owners and admins. Left out, a setting stays as it is.
Address and query string settings are at most the installation's limit, and "default" follows the installation's default. Passwords, tokens and other sensitive query values are never kept.
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 team's observability: what its servers collect and keep. Owners and admins. Left out, a setting stays as it is.
Address and query string settings are at most the installation's limit, and "default" follows the installation's default. Passwords, tokens and other sensitive query values are never kept.
API key access: full.
op*"setTeamObservability""setTeamObservability"teamId*stringenabled?|Whether the team's servers collect analytics, request logs and usage history. Off keeps what was collected.
requestLogs?|Whether the team's servers keep its requests and connections (the request log). Off still counts them in analytics.
ipMode?|What's kept of visitors' IP addresses: "anonymized", "none", "full" or "default".
queryStrings?|What's kept of query strings: "names" (parameter names only), "keep", "none" or "default".
requestLogMaxMb?|Most of the request log each of the team's clusters keeps, in MB: 100 to 20480.
int640 <= valuerequestLogMaxDays?|Most days of the request log each of the team's clusters keeps: 1 to 31.
int320 <= valueanalyticsMonths?|Keep the team's analytics 3, 6 or 12 months, at most as long as the installation. 0 keeps them as long as the installation does.
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 '{
"op": "setTeamObservability",
"teamId": "team_8kq2x7ad"
}'{}