<?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: Append data to existing feature layer (Python) in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-data-to-existing-feature-layer-python/m-p/593839#M2828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I sort of figured this out, using &lt;STRONG&gt;addFeatures&amp;nbsp;&lt;/STRONG&gt;from the ArcGIS Online REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this thread: &lt;A _jive_internal="true" href="https://community.esri.com/message/902429-add-multiple-features-in-addfeatures-api-request"&gt;Add multiple features in addFeatures API request?&lt;/A&gt;&amp;nbsp;(posted by me also!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2020 06:04:47 GMT</pubDate>
    <dc:creator>JackSilburn</dc:creator>
    <dc:date>2020-01-16T06:04:47Z</dc:date>
    <item>
      <title>Append data to existing feature layer (Python)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-data-to-existing-feature-layer-python/m-p/593837#M2826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a Python program to publish (&lt;EM&gt;append&lt;/EM&gt;) data to an ArcGIS Online feature layer, every 10 minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having issues understanding how to implement the ArcGIS REST API&amp;nbsp;method required to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Doing testing with the 'Update Data &amp;gt; Append Data to Layer' button in ArcGIS Online;&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/477500_pastedImage_2.png" /&gt;&lt;/LI&gt;&lt;LI&gt;I uploaded a test .csv file and inspected the network activity in Chrome developer tools;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/477501_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;3. I was hoping to mimic these requests, but &lt;STRONG&gt;instead&lt;/STRONG&gt; of a .csv file, the data comes from a json string in code.&lt;/P&gt;&lt;P&gt;4. Are&amp;nbsp;&lt;STRONG&gt;addItem, analyse and append&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;all&lt;/EM&gt; required for this operation?&lt;/P&gt;&lt;P&gt;5.&amp;nbsp;My understanding is that&amp;nbsp;&lt;STRONG&gt;addItem&amp;nbsp;&lt;/STRONG&gt;requires a 'file' to be uploaded. Can I get around this by sending the data in the&amp;nbsp;&lt;STRONG&gt;append&lt;/STRONG&gt; request? Perhaps as a&amp;nbsp;&lt;STRONG&gt;featureCollection&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This all seems quite complicated, as compared to the &lt;STRONG&gt;updateFeatures&lt;/STRONG&gt; method which I have used previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Side question,&amp;nbsp;I am querying a variety of sensor data. If I append the sensor data to their ArcGIS Online feature counterparts, will I end up with duplicate features, stacked on top of one another? I only need&amp;nbsp;one feature for each sensor location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I better off not using a feature layer for this task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 05:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-data-to-existing-feature-layer-python/m-p/593837#M2826</guid>
      <dc:creator>JackSilburn</dc:creator>
      <dc:date>2020-01-07T05:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Append data to existing feature layer (Python)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-data-to-existing-feature-layer-python/m-p/593838#M2827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given that &lt;A class="link-titled" href="https://developers.arcgis.com/python/" title="https://developers.arcgis.com/python/"&gt;ArcGIS API for Python | ArcGIS for Developers&lt;/A&gt; is primarily a Python wrapper for the ArcGIS REST API, I suggest you use the ArcGIS API for Python instead of trying to create your own REST calls via HTTP in Python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 15:30:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-data-to-existing-feature-layer-python/m-p/593838#M2827</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-01-07T15:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Append data to existing feature layer (Python)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-data-to-existing-feature-layer-python/m-p/593839#M2828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I sort of figured this out, using &lt;STRONG&gt;addFeatures&amp;nbsp;&lt;/STRONG&gt;from the ArcGIS Online REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this thread: &lt;A _jive_internal="true" href="https://community.esri.com/message/902429-add-multiple-features-in-addfeatures-api-request"&gt;Add multiple features in addFeatures API request?&lt;/A&gt;&amp;nbsp;(posted by me also!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 06:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-data-to-existing-feature-layer-python/m-p/593839#M2828</guid>
      <dc:creator>JackSilburn</dc:creator>
      <dc:date>2020-01-16T06:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Append data to existing feature layer (Python)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-data-to-existing-feature-layer-python/m-p/1221327#M4298</link>
      <description>&lt;P&gt;Would you happen to know how to append attachments to the records?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Carlos&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 23:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-data-to-existing-feature-layer-python/m-p/1221327#M4298</guid>
      <dc:creator>carlosreyes_dotca</dc:creator>
      <dc:date>2022-10-12T23:00:50Z</dc:date>
    </item>
  </channel>
</rss>

