---
title: "Put Capture Retention"
method: PUT
path: "/api/captures/{source}/{source_external_id}/retention"
tags: ["captures"]
---

# Put Capture Retention

`PUT /api/captures/{source}/{source_external_id}/retention`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/captures/{source}/{source_external_id}/retention`
- Auth: none declared

## Path parameters

- `source` string, required
- `source_external_id` string, required

## Query parameters

- `instance_id` string, nullable

## Headers

- `x-ingest-key` string, nullable
- `authorization` string, nullable
- `x-impersonate-identity-id` string, nullable

## Request body

- CaptureRetentionUpdateV1
  - `retention_days` integer, nullable, required

## Response `200`

Successful Response

- CaptureRetentionV1
  - `retention_days` integer, nullable, required
  - `delete_after` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

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