---
title: "Undelete all versions of a dek"
method: POST
path: "/dek-registry/v1/keks/{name}/deks/{subject}/undelete"
tags: ["Data Encryption Keys (v1)"]
---

# Undelete all versions of a dek

`POST /dek-registry/v1/keks/{name}/deks/{subject}/undelete`

## Path parameters

- `name` string, required
- `subject` string, required

## Query parameters

- `algorithm` 'AES128_GCM' | 'AES256_GCM' | 'AES256_SIV'

## Response `204`

No Content

## Other responses

- `404` — Not found. Error code 40470 -- Key not found. Error code 40472 -- Key must be undeleted.
- `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/1833d767d77c?raw)
