Api update account

For Issue #594