organizations

Set how long audit events are kept (365 to 3,650 days).

Organization admins only (403 organization_admin_required), on a browser session with a fresh proof in the x-50h-reauth header (401 reauth_required). It needs a person: API keys, connected apps and service accounts get 403 session_required. Every change is written to the organization's audit. A daily job deletes events older than the period, except those a legal hold covers. Once set, the period applies to the workspace logs too. 50heads keeps its own records (payments, payouts, fraud checks) for as long as it must, whatever is set here.

put/v1/organizations/current/audit/retention

Request

  • Base URL: https://api.50heads.com
  • URL: https://api.50heads.com/v1/organizations/current/audit/retention
  • Auth: HTTP bearer

Request body

daysinteger required

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.