---
title: "Update Internal Account"
method: PATCH
path: "/internal_accounts/{id}"
---

# Update Internal Account

`PATCH /internal_accounts/{id}`

## Request

- Base URL: `https://app.moderntreasury.com/api`
- URL: `https://app.moderntreasury.com/api/internal_accounts/{id}`
- Auth: HTTP basic

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string: A nickname for the internal account
  - `metadata` string, json: Additional data in the form of key-value pairs. Pairs can be removed by passing an empty string or null as the value.
  - `external_id` string: An optional user-defined 180 character unique identifier
  - `party_address` object: The address associated with the owner of the internal account. This update remains within Modern Treasury only and does not get sent to the bank.
    - `line1` string, required
    - `line2` string
    - `locality` string, required: Locality or City. Use the full city name rather than an abbreviation (e.g. San Francisco).
    - `region` string, required: Region or State. This field is free-form; for US states, we recommend a two-letter code (e.g. CA). Full state names are also accepted.
    - `postal_code` string, required: The postal code of the address.
    - `country` string, required: Country code conforms to [ISO 3166-1 alpha-2]
  - `ledger_account_id` string: The Ledger Account you would like to link to the internal account.
  - `contra_ledger_account_id` string: The Contra Ledger Account you would like to link to the internal account.
  - `parent_account_id` string: The UUID of the parent `InternalAccount` this account should be a child of.
  - `counterparty_id` string: The UUID of the `Counterparty` that this account refers to.
  - `status` 'pending_closure': Requests closure of the internal account. The resulting status may be `closed` for vendors that close synchronously.

## Response `200`

200

- object
  - `id` string
  - `object` string
  - `live_mode` boolean
  - `account_type` unknown
  - `party_name` string
  - `party_type` unknown
  - `party_address` object
    - `id` string
    - `object` string
    - `live_mode` boolean
    - `line1` string
    - `line2` string
    - `locality` string
    - `region` string
    - `postal_code` string
    - `country` string
    - `created_at` string
    - `updated_at` string
  - `account_details` object[]
    - `id` string
    - `object` string
    - `live_mode` boolean
    - `account_number` string
    - `account_number_type` string
    - `discarded_at` unknown
    - `created_at` string
    - `updated_at` string
  - `routing_details` object[]
    - `id` string
    - `object` string
    - `live_mode` boolean
    - `payment_type` unknown
    - `routing_number` string
    - `routing_number_type` string
    - `bank_name` string
    - `bank_address` object
      - `id` string
      - `object` string
      - `live_mode` boolean
      - `line1` string
      - `line2` unknown
      - `locality` string
      - `region` string
      - `postal_code` string
      - `country` string
      - `created_at` string
      - `updated_at` string
    - `discarded_at` unknown
    - `created_at` string
    - `updated_at` string
  - `name` string
  - `metadata` object
  - `connection` object
    - `id` string
    - `object` string
    - `live_mode` boolean
    - `vendor_id` string
    - `vendor_name` string
    - `vendor_customer_id` unknown
    - `discarded_at` unknown
    - `created_at` string
    - `updated_at` string
  - `currency` string
  - `parent_account_id` unknown
  - `counterparty_id` unknown
  - `ledger_account_id` string
  - `contra_ledger_account_id` string
  - `created_at` string
  - `updated_at` string
  - `external_id` string, nullable
  - `vendor_id` string, nullable
  - `debitable` boolean, nullable

## Other responses

- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/modern-treasury/apis/modern-treasury-api-byob.md) - [All operations](https://skmtc.dev/modern-treasury/apis/modern-treasury-api-byob/llms.txt) - [OpenAPI document](https://skmtc.dev/modern-treasury/apis/modern-treasury-api-byob/revisions/1f24e1f6b3fb?raw)
