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

# POST /esm-update

`POST /esm-update`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/esm-update`
- Auth: none declared

## 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.dev/akeyless/apis/account-settings.md) - [All operations](https://skmtc.dev/akeyless/apis/account-settings/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/account-settings/revisions/6beb28d274ac?raw)
