---
title: "Update the org's KB audit retention policy / legal hold"
method: PUT
path: "/v1/knowledge-base/retention-policy"
tags: ["knowledge-base-governance"]
---

# Update the org's KB audit retention policy / legal hold

`PUT /v1/knowledge-base/retention-policy`

## Request body

- RetentionPolicyUpdateRequest — 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, nullable
  - `legal_hold_enabled` boolean, nullable
  - `legal_hold_reason` string, nullable
  - `archive_before_delete` boolean, nullable
  - `archive_destination` string, nullable

## Response `200`

Successful Response

- SrcKnowledgeBaseGovernanceSchemasRetentionPolicyResponse — Org audit-retention policy + legal-hold state.
  - `id` string, uuid, required
  - `organization_id` string, uuid, required
  - `retention_days` integer, required
  - `legal_hold_enabled` boolean, required
  - `legal_hold_reason` string, nullable
  - `legal_hold_set_by` string, uuid, nullable
  - `legal_hold_set_at` string, date-time, nullable
  - `archive_before_delete` boolean, required
  - `archive_destination` string, nullable
  - `policy_version` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/oneloop-hq/apis/feather-api.md) · [All operations](https://skmtc.net/oneloop-hq/apis/feather-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneloop-hq/feather-api/revisions/5a5597ebb2d6/schema)
