API update method, rename function, fixed json