Skip to main content
Version: 0.1.21 (Current)

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

ParameterTypeRequiredDescription
account_idstrYesThe string ID of the account to update
account_name`strNone`No
account_balance`floatNone`No
account_type`strNone`No
account_sub_type`strNone`No
include_in_net_worth`boolNone`No
hide_from_summary_list`boolNone`No
hide_transactions_from_reports`boolNone`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:

  1. Install the package: pip install monarchmoney
  2. Create a Python script with the example code above
  3. Replace email and password with your Monarch Money credentials
  4. Run the script

See the Authentication Guide for details on logging in.