Thanks to Solarwinds team for constructing API to import new SAM templates.
I was trying to push all the contents of a exported template(apm-template) into the Import API, but it wasnt successful., thought i am able to import the template as file using UI

Any guidelines, we have currently while constructing the xml specific to this API.