---
title: "Update ledger metadata"
method: PUT
path: "/v2/{ledger}/metadata"
tags: ["ledger.v2"]
---

# Update ledger metadata

`PUT /v2/{ledger}/metadata`

## Request body

- V2UpdateLedgerMetadataRequest

## Response `204`

OK

## Other responses

- `default` — Error
- `5XX` — Error

## Changes

- **2024-10-25** `dcde15f756b5` — 2 warning
  - added the new `LEDGER_ALREADY_EXISTS` enum value to the `errorCode` response property for the response status `5XX`
  - added the new `LEDGER_ALREADY_EXISTS` enum value to the `errorCode` response property for the response status `default`

[Change history](https://skmtc.dev/formancehq/apis/ledger-api/changes/v2/:ledger/metadata/put.md)

---

[API](https://skmtc.dev/formancehq/apis/ledger-api.md) · [All operations](https://skmtc.dev/formancehq/apis/ledger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/formancehq/ledger-api/revisions/bb0f59cb5e25/schema)
