BISERVER-8028 Modify endpoint logic for generating export