fix the api controller put method

Stan fixed the method call for api controller