---
title: "Update retention policy"
method: PUT
path: "/api/sites/{id}/retention"
tags: ["Sites"]
---

# Update retention policy

`PUT /api/sites/{id}/retention`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/api/sites/{id}/retention`
- Auth: API key in cookie `hk_token`

Updates per-site retention days.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `days` integer, required

## Response `200`

Updated

---

[API](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api.md) · [All operations](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/revisions/bb2df36ab2a4?raw)
