Added upload template REST API endpoint