---
title: "Update the password for this account in the KMS"
method: PUT
path: "/keys/{name}"
tags: ["ICS1"]
---

# Update the password for this account in the KMS

`PUT /keys/{name}`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body

- object
  - `new_password` string, required
  - `old_password` string, required

## Response `200`

Updated password

## Other responses

- `401`: Key password is wrong
- `404`: Key doesn't exist

## Changes

- **2019-01-29** `09b6e250c67e`: 1 info
  - endpoint added
- **2019-01-29** `7f670f71b0eb`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/bnb-chain/apis/gaia-lite-for-cosmos/changes/keys/:name/put.md)

---

[API](https://skmtc.dev/bnb-chain/apis/gaia-lite-for-cosmos.md) - [All operations](https://skmtc.dev/bnb-chain/apis/gaia-lite-for-cosmos/llms.txt) - [OpenAPI document](https://skmtc.dev/bnb-chain/apis/gaia-lite-for-cosmos/revisions/66846564e1ee?raw)
