Been looking around, but thought i’d also ask to see what others may have already had success with.
I have never done that but there is a possibility as Infopath forms can be created using REST API, we just need to know how to use them. For Example: http://www.sharepointjunkies.com/create-infopath-form-programmatically-using-rest-api-jsom-sharepoint-online/