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

# POST /esm-update

`POST /esm-update`

## Request body

- EsmUpdate — esmUpdate is a command that updates a secret in an External Secrets Manager
  - `binary-value` boolean — Use this option if the external secret value is a base64 encoded binary
  - `description` string — Description of the external secret
  - `esm-name` string, required — Name of the External Secrets Manager item
  - `json` boolean — Set output format to JSON
  - `secret-id` string, required — The external secret id (or name, for AWS, Azure or K8s targets) to update
  - `tags` object — Tags for the external secret
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication
  - `value` string, required — Value of the external secret item, either text or base64 encoded binary

## Response `200`

esmUpdateResponse wraps response body.

- EsmUpdateSecretOutput
  - `name` string
  - `secret_id` string
  - `version_id` 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)
