<?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 Adding item layer to existing item using Arcgis Rest Api in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/adding-item-layer-to-existing-item-using-arcgis/m-p/1318303#M4539</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I am trying to add existing feature layer to web map or web scene. Is it doable using Arcgis Rest api?&lt;BR /&gt;Because I was looking into /share or /copy endpoints but looks like they work for sharing items with groups only&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2023 13:11:29 GMT</pubDate>
    <dc:creator>olysyy</dc:creator>
    <dc:date>2023-08-14T13:11:29Z</dc:date>
    <item>
      <title>Adding item layer to existing item using Arcgis Rest Api</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/adding-item-layer-to-existing-item-using-arcgis/m-p/1318303#M4539</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am trying to add existing feature layer to web map or web scene. Is it doable using Arcgis Rest api?&lt;BR /&gt;Because I was looking into /share or /copy endpoints but looks like they work for sharing items with groups only&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 13:11:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/adding-item-layer-to-existing-item-using-arcgis/m-p/1318303#M4539</guid>
      <dc:creator>olysyy</dc:creator>
      <dc:date>2023-08-14T13:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding item layer to existing item using Arcgis Rest Api</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/adding-item-layer-to-existing-item-using-arcgis/m-p/1322461#M4542</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/699082"&gt;@olysyy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There is no specific endpoint to add layers to a web map or web scene, but there is a generic endpoint to update a web map or web scene specification&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/update-item.htm" target="_self"&gt;https://[root]/content/users/[userName]/items/[itemID]/update&amp;nbsp;&lt;/A&gt;(POST only). So you will have to previously retrieve the specification using&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/item-data.htm" target="_self"&gt;https://[root]/content/items/[itemID]/data&lt;/A&gt;&amp;nbsp;modify it according to the &lt;A href="https://developers.arcgis.com/web-map-specification/" target="_self"&gt;Web Map&lt;/A&gt; or &lt;A href="https://developers.arcgis.com/web-scene-specification/" target="_self"&gt;Web Scene&lt;/A&gt; specifications, and save it.&lt;/P&gt;&lt;P&gt;If you feel comfortable with JavaScript you can also use the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/webmap-save/" target="_self"&gt;ArcGIS Maps SDK for JavaScript&lt;/A&gt; from NodeJS as&amp;nbsp;@Anonymous User&amp;nbsp;showed in the following video:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=f3kfswbNf9Y" target="_blank"&gt;https://www.youtube.com/watch?v=f3kfswbNf9Y&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are also specific functions to work with the REST endpoints within the ArcGIS API for Python or ArcGIS REST JS if you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 10:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/adding-item-layer-to-existing-item-using-arcgis/m-p/1322461#M4542</guid>
      <dc:creator>Raul_Jimenez</dc:creator>
      <dc:date>2023-08-25T10:54:00Z</dc:date>
    </item>
  </channel>
</rss>

