---
title: "PUT /data-retention"
method: PUT
path: "/data-retention"
---

# PUT /data-retention

`PUT /data-retention`

Sets the account-wide data retention mode for Amazon Bedrock.

## Request body

- object
  - `mode` 'default' | 'none' | 'provider_data_share' | 'inherit', required — <p>The data retention mode for the account. Valid values are:</p> <ul> <li> <p> <code>default</code> – The standard data handling for the model applies.</p> </li> <li> <p> <code>none</code> – Zero data retention.</p> </li> <li> <p> <code>provider_data_share</code> – Data may be shared with the model provider.</p> </li> <li> <p> <code>inherit</code> – No data retention mode is set at this scope.</p> </li> </ul>

## Response `200`

Success

- PutAccountDataRetentionResponse
  - `mode` 'default' | 'none' | 'provider_data_share' | 'inherit', required — The data retention mode set for the account.
  - `updatedAt` string, date-time — The time at which the data retention mode was last updated.

## Other responses

- `480` — AccessDeniedException
- `481` — ValidationException
- `482` — InternalServerException
- `483` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/bedrock.md) · [All operations](https://skmtc.net/aws/apis/bedrock/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/bedrock/versions/3bc874e43ecd/schema)
