Save  ArcGIS map using JavaScript API to my ESRI account

Discussion created by sobiero on Jan 14, 2014
Latest reply on Jan 15, 2014 by npeihl
I'm able to display and manipulate an ArcGIS map using the JavaScript API. (Drag and drop example)

I want to put a Save button that when clicked, will save the manipulated map on my ESRI global account (using JavaScript API) and return me the Map ID.  Is this possible?