---
title: "Revokes all end entity certificates"
method: PUT
path: "/v1/endentity/{endentity_name}/revoke"
tags: ["v1/endentity"]
---

# Revokes all end entity certificates

`PUT /v1/endentity/{endentity_name}/revoke`

Revokes all certificates associated with given end entity name with specified reason code (see RFC 5280 Section 5.3.1), and optionally deletes the end entity

## Path parameters

- `endentity_name` string, required

## Request body

- EndEntityRevocationRestRequest — End Entity revocation request. Available reason codes: 0 - Unspecified, 1 - Key Compromise, 2 - CA Compromise, 3 - Affiliation Changed, 4 - Superseded, 5 - Cessation of Operation, 6 - Certificate Hold, 8 - Remove from CRL, 9 - Privileges Withdrawn, 10 - AA Compromise
  - `reason_code` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 — Reason code
  - `delete` boolean — Delete

## Response `default`

successful operation

## Changes

- **2024-07-05** `b6fc2ad168e5` — 3 breaking, 11 info
  - removed the enum value `false` of the request property `delete`
  - removed the enum value `undefined` of the request property `reason_code`
  - removed the success response with the status `200`
  - api operation id `revoke_1` removed and replaced with `revoke`
  - …10 more

[Change history](https://skmtc.dev/keyfactor/apis/ejbca-rest-interface/changes/v1/endentity/:endentity_name/revoke/put.md)

---

[API](https://skmtc.dev/keyfactor/apis/ejbca-rest-interface.md) · [All operations](https://skmtc.dev/keyfactor/apis/ejbca-rest-interface/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keyfactor/ejbca-rest-interface/revisions/a201da1d1573/schema)
