I am trying to figure a way of persisting a new feature template using Arcgis JS API. I've managed to create a FeatureTemplate and get it shown on the template picker, but once the page is reloaded, the new template is gone. So what I'm trying to find is a way to persist the created feature template into database, something like FeatureLayer.applyEdits() that is used for geometries persistence.
Any help would be highly appreciated.
Thanks in advance.