---
title: "PUT /2020-05-31/response-headers-policy/{Id}"
method: PUT
path: "/2020-05-31/response-headers-policy/{Id}"
---

# PUT /2020-05-31/response-headers-policy/{Id}

`PUT /2020-05-31/response-headers-policy/{Id}`

Updates a response headers policy.

When you update a response headers policy, the entire policy is replaced. You cannot update some policy fields independent of others. To update a response headers policy configuration:

1.  Use `GetResponseHeadersPolicyConfig` to get the current policy's configuration.
    
2.  Modify the fields in the response headers policy configuration that you want to update.
    
3.  Call `UpdateResponseHeadersPolicy`, providing the entire response headers policy configuration, including the fields that you modified and those that you didn't.

## Path parameters

- `Id` string, required

## Headers

- `If-Match` string

## Response `200`

Success

## Other responses

- `480` — AccessDenied
- `481` — IllegalUpdate
- `482` — InconsistentQuantities
- `483` — InvalidArgument
- `484` — InvalidIfMatchVersion
- `485` — NoSuchResponseHeadersPolicy
- `486` — PreconditionFailed
- `487` — ResponseHeadersPolicyAlreadyExists
- `488` — TooManyCustomHeadersInResponseHeadersPolicy
- `489` — TooLongCSPInResponseHeadersPolicy
- `490` — TooManyRemoveHeadersInResponseHeadersPolicy

---

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