<?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: How do I programatically update the attribute of a single feature in a hosted feature service? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412643#M32478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From memory - when using Update Features in the REST API you need to pass in the ObjectId of the feature(s) you want to update. This may be an issue if you only have the GlobalId value as you would need a separate query to get the ObjectId for a known GlobalId.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 00:19:27 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2015-02-18T00:19:27Z</dc:date>
    <item>
      <title>How do I programatically update the attribute of a single feature in a hosted feature service?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412639#M32474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am collecting user data on my website.&amp;nbsp; I want to take that data and update the attribute of a singel feature in a hosted feature service.&amp;nbsp; I am an authenticated user and I know the URL of the hosted features service and GlobalID of the actual feature, but I'm know sure how to go about pushing the updated data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Javascript API and Python on my server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 22:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412639#M32474</guid>
      <dc:creator>MStayner</dc:creator>
      <dc:date>2015-02-17T22:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programatically update the attribute of a single feature in a hosted feature service?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412640#M32475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using a post request "Update Features". See &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000zt000000" title="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000zt000000"&gt;ArcGIS REST API&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 22:58:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412640#M32475</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-02-17T22:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programatically update the attribute of a single feature in a hosted feature service?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412641#M32476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the REST API operation to do this is ApplyEdits on a Feature Layer resource. See &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Apply_Edits_Feature_Service_Layer/02r3000000r6000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Apply_Edits_Feature_Service_Layer/02r3000000r6000000/"&gt;ArcGIS REST API Apply Edits&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to update a feature using ArcGIS JS API, the applyEdits method of a Feature Layer object should do the trick if you supply the feature you want to update in the updates parameter (note that it is an array): &lt;A href="https://developers.arcgis.com/javascript/jsapi/featurelayer.html#applyedits" title="https://developers.arcgis.com/javascript/jsapi/featurelayer.html#applyedits"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 23:06:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412641#M32476</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2015-02-17T23:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programatically update the attribute of a single feature in a hosted feature service?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412642#M32477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yeah, I didn't see the UpdateFeatures rest end point pointed out by &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌. That makes much more sense. Although I cannot see if that is directly accessible through the ArcGIS JS API. &lt;/P&gt;&lt;P&gt;You should be able to post a standard request to that end point though, which might be easier than using the applyEdits method anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 23:09:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412642#M32477</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2015-02-17T23:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programatically update the attribute of a single feature in a hosted feature service?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412643#M32478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From memory - when using Update Features in the REST API you need to pass in the ObjectId of the feature(s) you want to update. This may be an issue if you only have the GlobalId value as you would need a separate query to get the ObjectId for a known GlobalId.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 00:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412643#M32478</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2015-02-18T00:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I programatically update the attribute of a single feature in a hosted feature service?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412644#M32479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; he &lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000zt000000" rel="nofollow" target="_blank"&gt;ArcGIS REST API&lt;/A&gt; definitely looks like the best option for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 21:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-programatically-update-the-attribute-of-a/m-p/412644#M32479</guid>
      <dc:creator>MStayner</dc:creator>
      <dc:date>2015-02-18T21:17:42Z</dc:date>
    </item>
  </channel>
</rss>

