Palbase Analytics · API
/analytics/settingsChange the settings
How long rows are kept (a shorter retention removes what is older within minutes; a longer one keeps what is still there longer), the share of performance samples kept, and whether console records keep bodies.
Called by your server, with the project's secret key.
Request body
console_bodiesboolean · requiredConsole records keep request and response bodies.console_retention_daysinteger · requiredHow long console records are kept, in days.perf_sample_pctinteger · requiredThe share of performance samples kept.retention_daysinteger · requiredHow long events, samples and traces are kept, in days.curl -X PUT "https://<your-ref>.palbase.studio/analytics/settings" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"console_bodies":false,"console_retention_days":1,"perf_sample_pct":0,"retention_days":1}'Responses
200The settings
400The request is malformed, or what it sends breaks a limit (the error names which: the SDKs' codes)
401No key, or not a key of this project, or a token that is not valid (the edge's answer)
403Not the project's secret key
503The platform could not take or answer this now; nothing was kept, and retrying is safe (Retry-After)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation PutSettings of analytics's contract.