update_account
Type: mutation
Updates the details of an account. With the exception of the account_balance parameter, the only available parameters currently are those that are valid for both synced and manual accounts.
Signature
async def update_account(
account_id: str,
account_name: str | None = None,
account_balance: float | None = None,
account_type: str | None = None,
account_sub_type: str | None = None,
include_in_net_worth: bool | None = None,
hide_from_summary_list: bool | None = None,
hide_transactions_from_reports: bool | None = None
) -> Dict[str, Any]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
account_id | str | Yes | The string ID of the account to update |
account_name | `str | None` | No |
account_balance | `float | None` | No |
account_type | `str | None` | No |
account_sub_type | `str | None` | No |
include_in_net_worth | `bool | None` | No |
hide_from_summary_list | `bool | None` | No |
hide_transactions_from_reports | `bool | None` | No |
Example
from monarchmoney import MonarchMoney
mm = MonarchMoney()
await mm.login(email, password)
result = await mm.update_account("example_account_id")
print(result)
GraphQL Operation
Operation Name: Common_UpdateAccount
GraphQL Query
mutation Common_UpdateAccount($input: UpdateAccountMutationInput!) {
updateAccount(input: $input) {
account {
...AccountFields
__typename
}
errors {
...PayloadErrorFields
__typename
}
__typename
}
}
fragment AccountFields on Account {
id
displayName
syncDisabled
deactivatedAt
isHidden
isAsset
mask
createdAt
updatedAt
displayLastUpdatedAt
currentBalance
displayBalance
includeInNetWorth
hideFromList
hideTransactionsFromReports
includeBalanceInNetWorth
includeInGoalBalance
dataProvider
dataProviderAccountId
isManual
transactionsCount
holdingsCount
manualInvestmentsTrackingMethod
order
icon
logoUrl
deactivatedAt
type {
name
display
group
__typename
}
subtype {
name
display
__typename
}
credential {
id
updateRequired
disconnectedFromDataProviderAt
dataProvider
institution {
id
plaidInstitutionId
name
status
__typename
}
__typename
}
institution {
id
name
primaryColor
url
__typename
}
__typename
}
fragment PayloadErrorFields on PayloadError {
fieldErrors {
field
messages
__typename
}
message
code
__typename
}
Try It Out
To test this API method locally:
- Install the package:
pip install monarchmoney - Create a Python script with the example code above
- Replace
emailandpasswordwith your Monarch Money credentials - Run the script
See the Authentication Guide for details on logging in.