Skip to main content
PUT
Update the org's KB audit retention policy / legal hold

Authorizations

x-api-key
string
header
required

Body

application/json

PUT body for the retention policy. retention_days floor is enforced both here (422 at the edge) and in the service (defense in depth).

retention_days
integer | null
Required range: x >= 90
Maximum string length: 500
archive_before_delete
boolean | null
archive_destination
string | null
Maximum string length: 255

Response

Successful Response

Org audit-retention policy + legal-hold state.

id
string<uuid>
required
organization_id
string<uuid>
required
retention_days
integer
required
archive_before_delete
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
archive_destination
string | null
policy_version
string | null