update accounts api