---
title: "PUT /{accountId}/policies/data-retrieval"
method: PUT
path: "/{accountId}/policies/data-retrieval"
---

# PUT /{accountId}/policies/data-retrieval

`PUT /{accountId}/policies/data-retrieval`

This operation sets and then enacts a data retrieval policy in the region specified in the PUT request. You can set one policy per region for an AWS account. The policy is enacted within a few minutes of a successful PUT operation.

The set policy operation does not affect retrieval jobs that were in progress before the policy was enacted. For more information about data retrieval policies, see [Amazon Glacier Data Retrieval Policies](https://docs.aws.amazon.com/amazonglacier/latest/dev/data-retrieval-policy.html).

## Path parameters

- `accountId` string, required

## Request body

- object
  - `Policy` object — Data retrieval policy.
    - `Rules` DataRetrievalRule[] — The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
      - `Strategy` string — <p>The type of data retrieval policy to set.</p> <p>Valid values: BytesPerHour|FreeTier|None</p>
      - `BytesPerHour` integer — <p>The maximum number of bytes that can be retrieved in an hour.</p> <p>This field is required only if the value of the Strategy field is <code>BytesPerHour</code>. Your PUT operation will be rejected if the Strategy field is not set to <code>BytesPerHour</code> and you set this field.</p>

## Response `204`

Success

## Other responses

- `480` — InvalidParameterValueException
- `481` — MissingParameterValueException
- `482` — ServiceUnavailableException

---

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