<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Portal REST API -Upload a web map definition through the ArcGIS Portal REST API in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22873#M31</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's &lt;A href="http://www.getpostman.com/"&gt;Postman&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 16:43:27 GMT</pubDate>
    <dc:creator>HeikoHeijenga</dc:creator>
    <dc:date>2014-12-16T16:43:27Z</dc:date>
    <item>
      <title>ArcGIS Portal REST API -Upload a web map definition through the ArcGIS Portal REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22870#M28</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to upload a web map definition to our ArcGIS Online Organizational Account through the ArcGIS Portal REST API. I'm using python to construct and issue the request. So far I can retrieve information about items, but I've yet to successfully use the &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Add_Item/02r30000008q000000/"&gt;AddItem &lt;/A&gt;Operation. I keep getting&amp;nbsp; "{"error":{"code":403,"messageCode":"GWM_0003","message":"You do not have permissions to access this resource or perform this operation.","details":[]}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am using the admin account, getting a token and can perform other operations, such as Item, to get a json definition of a web map. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the URL:&lt;/P&gt;&lt;P&gt;&lt;A href="https://metrocouncil.maps.arcgis.com/sharing/rest/content/users/metc_admin/addItem?f=json" title="https://metrocouncil.maps.arcgis.com/sharing/rest/content/users/metc_admin/addItem?f=json"&gt;https://&amp;lt;AGOL Organizational URL&amp;gt;/sharing/rest/content/users/&amp;lt;username&amp;gt;/addItem?f=json&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a scrubbed version of the JSON I'm trying to post through the operation. Should this be allowed, and if so, is there a document available that shows what the JSON payload should look like to successfully use the addItem operation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 23:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22870#M28</guid>
      <dc:creator>MattMcGuire</dc:creator>
      <dc:date>2014-11-07T23:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST API -Upload a web map definition through the ArcGIS Portal REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22871#M29</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you send a POST request, I just tried with your provided json and it works fine:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="post.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/38603_post.png" style="width: 620px; height: 390px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 21:12:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22871#M29</guid>
      <dc:creator>HeikoHeijenga</dc:creator>
      <dc:date>2014-12-08T21:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST API -Upload a web map definition through the ArcGIS Portal REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22872#M30</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Heiko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to construct a successful post using fiddler thanks to your post. What tool is it that you've pasted the screenshot from?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 16:49:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22872#M30</guid>
      <dc:creator>MattMcGuire</dc:creator>
      <dc:date>2014-12-11T16:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST API -Upload a web map definition through the ArcGIS Portal REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22873#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's &lt;A href="http://www.getpostman.com/"&gt;Postman&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 16:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22873#M31</guid>
      <dc:creator>HeikoHeijenga</dc:creator>
      <dc:date>2014-12-16T16:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST API -Upload a web map definition through the ArcGIS Portal REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22874#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;I came across your question, because I want to create a webmap from json, too -- Without using the webmap GUI builder. I tried adding an item on AGO, and it thinks I'm adding geojson. If you use this technique, uploading through the AGO REST API, will I be able to access the webmap through the regular AGO map view?&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 20:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22874#M32</guid>
      <dc:creator>deleted-user-Jie3eyjOl9XM</dc:creator>
      <dc:date>2014-12-17T20:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST API -Upload a web map definition through the ArcGIS Portal REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22875#M33</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It did make it work using that technique, but&amp;nbsp; you won't be able to access the web map, because I'd have to share it with you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As &lt;A href="https://community.esri.com/migrated-users/10293"&gt;Heiko Heijenga&lt;/A&gt; noted, he was able to post successfully using the JSON I provided. So I tried again and after some frustration was also able to post the JSON and found a valid web map in my AGOL account. Note that the non-basemap layer in my JSON does not show any data. The web map is OK, but&amp;nbsp; you might want to try it with your own basemap and layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool that Heiko linked is an easier way to "fiddle" with post requests than fiddler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 21:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22875#M33</guid>
      <dc:creator>MattMcGuire</dc:creator>
      <dc:date>2014-12-17T21:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST API -Upload a web map definition through the ArcGIS Portal REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22876#M34</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is great! I used POSTMAN to generate a token, and and then upload a webmap, which I can view in the map view, and has an itemid! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 23:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22876#M34</guid>
      <dc:creator>deleted-user-Jie3eyjOl9XM</dc:creator>
      <dc:date>2014-12-17T23:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal REST API -Upload a web map definition through the ArcGIS Portal REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22877#M35</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another alternative to serve out webmapIDs is to parse your webmapID in &lt;A href="http://www.cartologic.com/cartoview"&gt;Cartoview&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 23:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-portal-rest-api-upload-a-web-map-definition/m-p/22877#M35</guid>
      <dc:creator>AdamJoseph1</dc:creator>
      <dc:date>2015-07-08T23:37:58Z</dc:date>
    </item>
  </channel>
</rss>

