---
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` integer — Reason code
  - `delete` false — Delete

## Response `200`

Successful operation

## Changes

- **2025-03-11** `4045b1bab09f` — 11 breaking, 4 info
  - request property `delete` was restricted to a list of enum values
  - removed the enum value `0.00` of the request property `reason_code`
  - removed the enum value `1.00` of the request property `reason_code`
  - removed the enum value `10.00` of the request property `reason_code`
  - …11 more
- **2025-03-11** `37878df36b77` — 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
- **2025-01-24** `d0f3affe7c3c` — 11 breaking, 4 info
  - request property `delete` was restricted to a list of enum values
  - removed the enum value `0.00` of the request property `reason_code`
  - removed the enum value `1.00` of the request property `reason_code`
  - removed the enum value `10.00` of the request property `reason_code`
  - …11 more
- **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/44f8798658e2/schema)
