fix(rest-api): rename array to object in create user function