---
title: "POST /update-certificate-value"
method: POST
path: "/update-certificate-value"
tags: ["v2"]
---

# POST /update-certificate-value

`POST /update-certificate-value`

## Request body

- UpdateCertificateValue
  - `add-tag` string[] — List of the new tags that will be attached to this item
  - `certificate-data` string — Content of the certificate in a Base64 format.
  - `delete_protection` string — Protection from accidental deletion of this object [true/false]
  - `description` string — Description of the object
  - `expiration-event-in` string[] — How many days before the expiration of the certificate would you like to be notified.
  - `format` string — CertificateFormat of the certificate and private key, possible values: cer,crt,pem,pfx,p12. Required when passing inline certificate content with --certificate-data or --key-data, otherwise format is derived from the file extension.
  - `json` boolean — Set output format to JSON
  - `keep-prev-version` string — Whether to keep previous version [true/false]. If not set, use default according to account settings
  - `key` string — The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used)
  - `key-data` string — Content of the certificate's private key in a Base64 format.
  - `metadata` string — Deprecated - use description
  - `name` string, required — Certificate name
  - `rm-tag` string[] — List of the existent tags that will be removed from this item
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

updateCertificateValueResponse wraps response body.

- UpdateCertificateOutput
  - `name` string

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
