---
title: "Alters a kek"
method: PUT
path: "/dek-registry/v1/keks/{name}"
tags: ["Key Encryption Keys (v1)"]
---

# Alters a kek

`PUT /dek-registry/v1/keks/{name}`

## Path parameters

- `name` string, required

## Query parameters

- `testSharing` boolean

## Request body

- UpdateKekRequest
  - `kmsProps` object — Properties of the kek
  - `doc` string — Description of the kek
  - `shared` boolean — Whether the kek is shared

## Response `200`

The update response

## Other responses

- `404` — Error code 40470 -- Key not found
- `409` — Error code 40971 -- Key already exists
- `422` — Error code 42271 -- Invalid key

---

[API](https://skmtc.dev/confluent/apis/confluent-cloud-apis.md) · [All operations](https://skmtc.dev/confluent/apis/confluent-cloud-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/confluent/apis/confluent-cloud-apis/revisions/cd93f933f941?raw)
