---
title: "PUT /2020-05-31/public-key/{Id}/config"
method: PUT
path: "/2020-05-31/public-key/{Id}/config"
---

# PUT /2020-05-31/public-key/{Id}/config

`PUT /2020-05-31/public-key/{Id}/config`

Update public key information. Note that the only value you can change is the comment.

## Path parameters

- `Id` string, required

## Headers

- `If-Match` string

## Response `200`

Success

## Other responses

- `480` — AccessDenied
- `481` — CannotChangeImmutablePublicKeyFields
- `482` — InvalidArgument
- `483` — InvalidIfMatchVersion
- `484` — IllegalUpdate
- `485` — NoSuchPublicKey
- `486` — PreconditionFailed

---

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