Internal
Prune expired audit and OAuth token rows in bounded batches
Changed onRuns bounded, indexed batch deletion for expired platform_audit_event rows, delete_oldest organization audit operations beyond retention/allowance, and expired oauthAccessToken rows. Supports dryRun=true to preview candidates without deleting. Answers 404 when DEN_MAINTENANCE_TOKEN is not configured.
post/internal/audit/retention/prune
Request
- Base URLhttps://api.openworklabs.com
- AuthHTTP bearer
Response
Retention prune batch finished.
object required
dryRun, boolean required
durationMs, integer required
platform, object nullable required
organization, object nullable required
oauthAccessTokens, object nullable required
Changes
- info
endpoint added
- info