Api improvements for batch import