---
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 `default`

successful operation

## Changes

- **2024-07-05** `b6fc2ad168e5` — 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

[Change 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/a201da1d1573/schema)
