Skip to main content
PUT
Update retention policy
Updates the retention policy that controls how long audit logs are kept and what happens when they expire. Requires the tenant.audit.retention.manage permission.

Responses

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Body

application/json
retention_days
integer
required

Number of days to retain audit logs

hard_delete
boolean

Whether to permanently delete logs after retention period

export_allowed
boolean
environment_id
string

Response

Retention policy updated

retention_days
integer
hard_delete
boolean
updated_at
string