Update the Api controller