Internal

Prune expired audit and OAuth token rows in bounded batches

Changed on

Runs 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 URL
    https://api.openworklabs.com
  • Auth
    HTTP 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