<?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: Create Simple Web Map via API REST in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267797#M1312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out I was using the wrong access token. I was using the app access token instead of the user access token.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the user access token it works now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2018 09:53:54 GMT</pubDate>
    <dc:creator>PilarArregui</dc:creator>
    <dc:date>2018-04-04T09:53:54Z</dc:date>
    <item>
      <title>Create Simple Web Map via API REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267794#M1309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following the instructions on this page&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/working-with-users-groups-and-items.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/working-with-users-groups-and-items.htm"&gt;Working with users, groups, and items—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;I was able build a POST request in POSTMAN &amp;nbsp;to add a new item to the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After getting the token, when I try the POST request to add the web map I get this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{"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;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/400443_Screen Region 2018-04-03 at 18.06.36.png" style="width: 620px; height: 264px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The JSON I used is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "operationalLayers": [],&lt;BR /&gt; "baseMap": {&lt;BR /&gt; "baseMapLayers": [&lt;BR /&gt; {&lt;BR /&gt; "id": "defaultBasemap",&lt;BR /&gt; "layerType": "ArcGISTiledMapServiceLayer",&lt;BR /&gt;&lt;SPAN&gt; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FWorld_Topo_Map%2FMapServer" rel="nofollow" target="_blank"&gt;https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt; "visibility": true,&lt;BR /&gt; "opacity": 1,&lt;BR /&gt; "title": "Topographic"&lt;BR /&gt; }&lt;BR /&gt; ],&lt;BR /&gt; "title": "Topographic"&lt;BR /&gt; },&lt;BR /&gt; "spatialReference": {&lt;BR /&gt; "wkid": 102100,&lt;BR /&gt; "latestWkid": 3857&lt;BR /&gt; },&lt;BR /&gt; "authoringApp": "WebMapViewer",&lt;BR /&gt; "authoringAppVersion": "5.4",&lt;BR /&gt; "version": "2.11"&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 16:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267794#M1309</guid>
      <dc:creator>PilarArregui</dc:creator>
      <dc:date>2018-04-03T16:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create Simple Web Map via API REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267795#M1310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pilar,&lt;/P&gt;&lt;P&gt;The username you are using in AGOL, does it have the right role assigned that allows content to be created. Can you create &amp;amp; save a webmap using the standard menuitems in AGOL using this username?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 00:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267795#M1310</guid>
      <dc:creator>AnthonyRyanEQL</dc:creator>
      <dc:date>2018-04-04T00:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create Simple Web Map via API REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267796#M1311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&amp;nbsp;&lt;BR /&gt;The username I'm using in AGOL is an ArcGIS developer account. As far as I know this kind of user has an admin role and all permissions available. And I can create a WebMap in the ArcGIS webpage without problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:24:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267796#M1311</guid>
      <dc:creator>PilarArregui</dc:creator>
      <dc:date>2018-04-04T09:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create Simple Web Map via API REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267797#M1312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out I was using the wrong access token. I was using the app access token instead of the user access token.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the user access token it works now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267797#M1312</guid>
      <dc:creator>PilarArregui</dc:creator>
      <dc:date>2018-04-04T09:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create Simple Web Map via API REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267798#M1313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pilar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you describe this last step in more detail? I believe I am facing a similar issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 02:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/267798#M1313</guid>
      <dc:creator>JackSilburn</dc:creator>
      <dc:date>2020-05-14T02:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create Simple Web Map via API REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/1414514#M4733</link>
      <description>&lt;P&gt;I had this problem too. Turns out you need an OAuth token and not the token from generateToken. The code I used is here: &lt;A href="https://gist.github.com/YikChingTsui/ff6d7b6126db73a77e5845576250177d" target="_blank"&gt;https://gist.github.com/YikChingTsui/ff6d7b6126db73a77e5845576250177d&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 03:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/create-simple-web-map-via-api-rest/m-p/1414514#M4733</guid>
      <dc:creator>Yik-ChingTsui</dc:creator>
      <dc:date>2024-04-24T03:00:25Z</dc:date>
    </item>
  </channel>
</rss>

