---
title: "Update a bank account"
method: PATCH
path: "/companies/{companyId}/bank-accounts/{id}"
tags: ["Bank Accounts"]
---

# Update a bank account

`PATCH /companies/{companyId}/bank-accounts/{id}`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/companies/{companyId}/bank-accounts/{id}`
- Auth: HTTP bearer

## Request body

- UpdateBankAccountInput
  - `accountName` string
  - `accountType` 'checking' | 'savings' | 'credit' | 'investment' | 'processor'
  - `status` 'active' | 'disconnected' | 'error'
  - `balanceCents` integer

## Response `200`

Bank account updated

- BankAccountResponse
  - `success` boolean
  - `data` BankAccount
    - `id` string, uuid
    - `companyId` string, uuid
    - `entityId` string, uuid
    - `integrationId` string, uuid, nullable
    - `provider` string, nullable
    - `institutionName` string
    - `accountName` string, nullable
    - `accountType` 'checking' | 'savings' | 'credit' | 'investment' | 'processor', nullable
    - `mask` string, nullable
    - `currency` string
    - `balanceCents` integer, nullable
    - `status` 'active' | 'disconnected' | 'error'
    - `externalId` string, nullable
    - `connectedAt` string, date-time
    - `lastSyncedAt` string, date-time, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Bank account not found
- `422`: Validation error

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
