Update Ledger Account

patch/ledger_accounts/{id}

Request

  • Base URL
    https://app.moderntreasury.com/api
  • URL
    https://app.moderntreasury.com/api/ledger_accounts/{id}
  • Auth
    HTTP basic

Path parameters

idstring required

The ID or external_id of the ledger account

Request body

namestring

The name of the ledger account. Maximum of 1000 characters allowed.

descriptionstring

An optional free-form description for internal use. Maximum of 1000 characters allowed.

metadatastring json
external_idstring

An optional user-defined 180 character unique identifier

Response

200

idstring
objectstring
live_modeboolean
namestring
ledger_idstring
descriptionunknown
lock_versioninteger
normal_balancestring
metadataobject
discarded_atunknown
created_atstring
updated_atstring

Example response

{
  "id": "690eed62-5b6c-45ee-a474-f54905133866",
  "object": "ledger_account",
  "name": "Operating Bank Account",
  "ledger_id": "fe96565f-4b9c-4871-8fb0-e6f02683458e",
  "normal_balance": "debit",
  "balances": {
    "pending_balance": {
      "currency": "USD",
      "currency_exponent": 2
    },
    "posted_balance": {
      "currency": "USD",
      "currency_exponent": 2
    },
    "available_balance": {
      "currency": "USD",
      "currency_exponent": 2
    }
  },
  "created_at": "2022-11-01T20:57:31Z",
  "updated_at": "2022-11-01T20:57:31Z"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.