[#69496920] Added batch controller for API endpoint

You named this the exact same as the variable above which will stomp on its value.  This should be a new array with a different name.