---
title: "PUT /2020-05-31/continuous-deployment-policy/{Id}"
method: PUT
path: "/2020-05-31/continuous-deployment-policy/{Id}"
---

# PUT /2020-05-31/continuous-deployment-policy/{Id}

`PUT /2020-05-31/continuous-deployment-policy/{Id}`

Updates a continuous deployment policy. You can update a continuous deployment policy to enable or disable it, to change the percentage of traffic that it sends to the staging distribution, or to change the staging distribution that it sends traffic to.

When you update a continuous deployment policy configuration, all the fields are updated with the values that are provided in the request. You cannot update some fields independent of others. To update a continuous deployment policy configuration:

1.  Use `GetContinuousDeploymentPolicyConfig` to get the current configuration.
    
2.  Locally modify the fields in the continuous deployment policy configuration that you want to update.
    
3.  Use `UpdateContinuousDeploymentPolicy`, providing the entire continuous deployment 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` — InvalidIfMatchVersion
- `481` — InvalidArgument
- `482` — AccessDenied
- `483` — InconsistentQuantities
- `484` — PreconditionFailed
- `485` — StagingDistributionInUse
- `486` — NoSuchContinuousDeploymentPolicy

---

[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)
