---
title: "Update Ledger Account"
method: PATCH
path: "/ledger_accounts/{id}"
---

# Update Ledger Account

`PATCH /ledger_accounts/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string — The name of the ledger account. Maximum of 1000 characters allowed.
  - `description` string — An optional free-form description for internal use. Maximum of 1000 characters allowed.
  - `metadata` string, json
  - `external_id` string — An optional user-defined 180 character unique identifier

## Response `200`

200

- object
  - `id` string
  - `object` string
  - `live_mode` boolean
  - `name` string
  - `ledger_id` string
  - `description` unknown
  - `lock_version` integer
  - `normal_balance` string
  - `balances` object
    - `effective_at_lower_bound` unknown
    - `effective_at_upper_bound` unknown
    - `pending_balance` object
      - `credits` integer
      - `debits` integer
      - `amount` integer
      - `currency` string
      - `currency_exponent` integer
    - `posted_balance` object
      - `credits` integer
      - `debits` integer
      - `amount` integer
      - `currency` string
      - `currency_exponent` integer
    - `available_balance` object
      - `credits` integer
      - `debits` integer
      - `amount` integer
      - `currency` string
      - `currency_exponent` integer
  - `metadata` object
  - `discarded_at` unknown
  - `created_at` string
  - `updated_at` string

---

[API](https://skmtc.net/modern-treasury/apis/modern-treasury-api.md) · [All operations](https://skmtc.net/modern-treasury/apis/modern-treasury-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modern-treasury/modern-treasury-api/revisions/ed0431a2dcd0/schema)
