---
title: "Put Evidence Retention"
method: PUT
path: "/consent-hosting/evidence-retention"
tags: ["consent-hosting"]
---

# Put Evidence Retention

`PUT /consent-hosting/evidence-retention`

## Request

- Base URL: `https://api.openproof.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openproof.io/consent-hosting/evidence-retention`
- Auth: HTTP bearer

'keep' (the default): the evidence stays for 3 years after the account is deleted, then the personal
details in it are erased. 'erase_now': the personal details are erased by the next daily run after the
account is deleted. Owner only.

## Request body

- EvidenceRetentionUpdate
  - `mode` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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