---
title: "Update a data source account"
method: PUT
path: "/api/data_source_accounts/{heron_id}"
tags: ["EndUserDataSourceAccounts"]
---

# Update a data source account

`PUT /api/data_source_accounts/{heron_id}`

Update a data source account

## Path parameters

- `heron_id` string, required

## Request body

- EndUserDataSourceAccountUpdateSchema
  - `is_enabled` boolean — Whether or not the account is enabled. If disabled, hides related transactions from analytics

## Response `200`

Ok

- EndUserDataSourceAccount
  - `account_id` string — Unique account id associated with the data source account
  - `anomaly_reasons` string[], nullable — Reasons associated with anomaly_score for pdf bank statement account sources
  - `anomaly_score` integer — For pdf bank statement account sources, where the value is between 0 and 1000, with 1000 being the most anomalous
  - `balances` AccountBalance[] — List of balances associated with the account
    - `closing_amount` Money, required
      - `amount` number — The amount of money
      - `currency` string — The currency of the money
    - `currency` string — Currency of the balance
    - `date` string, date — Date of the balance
  - `currency` string — Currency of the account
  - `display_account_id` string, nullable — Human-readable account label for display: the last four digits of the account number (falling back to the account title). Not unique and not a key; use account_id to join.
  - `end_date` string, date — End date of the account
  - `heron_id` string — Unique ID for data source generated by Heron
  - `institution_name` string — Name of the institution
  - `is_enabled` boolean, required — Whether or not the account is enabled. If disabled, hides related transactions from analytics
  - `max_date` string, date — Latest date of transactions associated with the data source account
  - `min_date` string, date — Earliest date of transactions associated with the data source account
  - `name` string — Name of the account
  - `num_transactions` integer — Number of transactions associated with the data source account
  - `number` string — Number of the account
  - `owner_name` string — Name of the account owner
  - `reference_id` string — This is the account ID provided as part of the transaction
  - `start_date` string, date — Start date of the account
  - `transactions_match_balances` boolean — For pdf bank statements, represents whether all transactions extracted match the balances extracted
  - `type` string — Type of the account

---

[API](https://skmtc.net/herondata/apis/heron-data-api.md) · [All operations](https://skmtc.net/herondata/apis/heron-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/herondata/heron-data-api/versions/f2e441edece2/schema)
