---
title: "Edits end entity setting new status"
method: POST
path: "/v1/endentity/{endentity_name}/setstatus"
tags: ["v1/endentity"]
---

# Edits end entity setting new status

`POST /v1/endentity/{endentity_name}/setstatus`

Edit status, password and token type of related end entity

## Path parameters

- `endentity_name` string, required

## Request body

- SetEndEntityStatusRestRequest — Use one of allowed values as property(see enum values below). Available TOKEN - USERGENERATED, P12, BCFKS, JKS, PEM; Available STATUS - NEW, FAILED, INITIALIZED, INPROCESS, GENERATED, REVOKED, HISTORICAL, KEYRECOVERY, WAITINGFORADDAPPROVAL;
  - `password` string — Password
  - `token` 'USERGENERATED, P12, BCFKS, JKS, PEM' — Token type property
  - `status` 'NEW, FAILED, INITIALIZED, INPROCESS, GENERATED, REVOKED, HISTORICAL, KEYRECOVERY, WAITINGFORADDAPPROVAL' — End entity status property

## Response `200`

Successful operation

## Changes

- **2025-03-11** `4045b1bab09f` — 14 breaking, 3 info
  - removed the enum value `BCFKS` of the request property `token`
  - removed the enum value `FAILED` of the request property `status`
  - removed the enum value `GENERATED` of the request property `status`
  - removed the enum value `HISTORICAL` of the request property `status`
  - …13 more
- **2025-03-11** `37878df36b77` — 3 breaking, 14 info
  - removed the enum value `NEW, FAILED, INITIALIZED, INPROCESS, GENERATED, REVOKED, HISTORICAL, KEYRECOVERY, WAITINGFORADDAPPROVAL` of the request property `status`
  - removed the enum value `USERGENERATED, P12, BCFKS, JKS, PEM` of the request property `token`
  - removed the success response with the status `200`
  - added the new `BCFKS` enum value to the request property `token`
  - …13 more
- **2025-01-24** `d0f3affe7c3c` — 14 breaking, 3 info
  - removed the enum value `BCFKS` of the request property `token`
  - removed the enum value `FAILED` of the request property `status`
  - removed the enum value `GENERATED` of the request property `status`
  - removed the enum value `HISTORICAL` of the request property `status`
  - …13 more
- …earlier changes not shown

[Full history](https://skmtc.dev/keyfactor/apis/ejbca-rest-interface/changes/v1/endentity/:endentity_name/setstatus/post.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)
