<?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 fs.update(item_properties) deleting other properties in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/fs-update-item-properties-deleting-other/m-p/1350835#M9306</link>
    <description>&lt;P&gt;Background, I'm using this script,&amp;nbsp;&lt;A href="https://support.esri.com/en/Technical-Article/000023164," target="_blank" rel="noopener"&gt;https://support.esri.com/en/Technical-Article/000023164,&lt;/A&gt;&amp;nbsp;to update/overwrite existing hosted feature layer which already has a, summary, description, thumbnail, and credits already set. But I want to update the summary after I run the overwrite to reflect the date the item was updated with new data. I know it's shown elsewhere in the item, but I want to make it visible to users browsing&amp;nbsp; the DataHub without having to click on the card and needing to navigate to a new tab/window.&lt;/P&gt;&lt;P&gt;I noticed that when I fill out the "sharing_draft..." parameters in the above script, it only applies to the metadata and not on the item page. So I was going to use the item.update(item_properties = ....) function to update the item page after the overwrite. And I'm running into an issue where I only want to update the summary/ snippet using:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;item&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;update&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;item_properties = {'snippet': "xyz"})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;But after it runs it updates the summary just fine, but then deletes the other filled out information like the description, credits, and the thumbnail; tags and disclaimer are unaffected. The documentation here,&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#item," target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#item,&lt;/A&gt;&amp;nbsp;says it should only update the property you specify. So I'm wondering if this is a bug or am I doing something wrong or missing something?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 15:13:25 GMT</pubDate>
    <dc:creator>twangtx</dc:creator>
    <dc:date>2023-11-17T15:13:25Z</dc:date>
    <item>
      <title>fs.update(item_properties) deleting other properties</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/fs-update-item-properties-deleting-other/m-p/1350835#M9306</link>
      <description>&lt;P&gt;Background, I'm using this script,&amp;nbsp;&lt;A href="https://support.esri.com/en/Technical-Article/000023164," target="_blank" rel="noopener"&gt;https://support.esri.com/en/Technical-Article/000023164,&lt;/A&gt;&amp;nbsp;to update/overwrite existing hosted feature layer which already has a, summary, description, thumbnail, and credits already set. But I want to update the summary after I run the overwrite to reflect the date the item was updated with new data. I know it's shown elsewhere in the item, but I want to make it visible to users browsing&amp;nbsp; the DataHub without having to click on the card and needing to navigate to a new tab/window.&lt;/P&gt;&lt;P&gt;I noticed that when I fill out the "sharing_draft..." parameters in the above script, it only applies to the metadata and not on the item page. So I was going to use the item.update(item_properties = ....) function to update the item page after the overwrite. And I'm running into an issue where I only want to update the summary/ snippet using:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;item&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;update&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;item_properties = {'snippet': "xyz"})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;But after it runs it updates the summary just fine, but then deletes the other filled out information like the description, credits, and the thumbnail; tags and disclaimer are unaffected. The documentation here,&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#item," target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#item,&lt;/A&gt;&amp;nbsp;says it should only update the property you specify. So I'm wondering if this is a bug or am I doing something wrong or missing something?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 15:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/fs-update-item-properties-deleting-other/m-p/1350835#M9306</guid>
      <dc:creator>twangtx</dc:creator>
      <dc:date>2023-11-17T15:13:25Z</dc:date>
    </item>
  </channel>
</rss>

