Normally, once a chart of account is created, it shouldn't be updated anymore. But just in case you need to correct some fields (like the name and account type) in the beginning, the updateAccount function is available to use.
Query
mutation UpdateAccount($accountId: ID!, $input: AccountInput!) {
tenant {
updateAccount(accountId: $accountId, input: $input) {
id
name
type
currency
balance
user {
id
username
}
}
}
}