---
title: "Update"
method: PUT
path: "/workspaces/{wid}/retention"
tags: ["retention"]
---

# Update

`PUT /workspaces/{wid}/retention`

## Request

- Base URL: `https://app.linerecon.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.linerecon.com/workspaces/{wid}/retention`
- Auth: none declared

## Path parameters

- `wid` string, uuid, required

## Request body

- PolicyUpdate
  - `request_id` string, uuid, required
  - `revision` integer, required
  - `retention_days` integer, required
  - `automatic_deletion_enabled` boolean, nullable
  - `confirm_irreversible` boolean

## Response `200`

Successful Response

- PolicyView
  - `revision` integer, required
  - `retention_days` integer, required
  - `date_basis` 'batch_last_upload', required
  - `automatic_deletion_enabled` boolean, required
  - `automatic_deletion_available` boolean, required
  - `deletion_status` 'off' | 'on' | 'paused', required
  - `deletion_effective_at` string, date-time, nullable, required
  - `automatic_deletion_changed_at` string, date-time, nullable, required
  - `automatic_deletion_changed_by_name` string, nullable, required
  - `deletion_scope` 'uploaded_files_and_page_images', required
  - `full_erasure_supported` boolean, required
  - `limitations` string[], required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `413`: Content Too Large
- `422`: Unprocessable Content
- `429`: Too Many Requests
- `503`: Service Unavailable

---

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