<?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 replace hosted feature class data in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/replace-hosted-feature-class-data/m-p/875897#M4908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a set of hosted feature services that are already nicely symbolized.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have new data in a file geodatabase that needs to be uploaded to replace the previous version. This we can do using the python API and have running well. But our new layer has the default symbology.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we are trying the function below which seems to imply you can replace the Data for an item using an update call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its very vague as to what the data attribute is looking to accept. We have tried passing in a file gdb, &amp;nbsp;a new service url.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="" style="color: #000000; background: transparent; border: none; font-weight: bold;"&gt;&lt;SPAN class="" style="background: #f1c40f; font-weight: bold; padding: 0px 6px;"&gt;update&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;EM&gt;item_properties=None&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;data=None&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;thumbnail=None&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;metadata=None&lt;/EM&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; margin: 0px 0px 12px !important 0px;"&gt;&lt;SPAN class="" style="background: #f1c40f; font-weight: bold; padding: 0px 6px;"&gt;Update&lt;/SPAN&gt;s an item in a Portal.&lt;/P&gt;&lt;DIV class="" style="background: #e7f2fa; margin-bottom: 24px; padding: 12px;"&gt;&lt;P class="" style="color: #ffffff; background: #6ab0de; font-weight: bold; font-size: inherit; margin: -12px -12px 12px; padding: 6px 12px;"&gt;Note&lt;/P&gt;&lt;P style="font-size: 16px; margin: 0px 0px 12px !important 0px;"&gt;That content can be a file (such as a layer package, geoprocessing package, map package) or it can be a URL (to an ArcGIS Server service, WMS service, or an application).&lt;/P&gt;&lt;P style="font-size: 16px; margin: 0px 0px 12px !important 0px;"&gt;If you are uploading a package or other file, provide a path or URL to the file in the data argument.&lt;/P&gt;&lt;P class="" style="font-size: 16px;"&gt;Only pass in arguments for properties you want to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="background: #f1c40f; font-weight: bold; padding: 0px 6px;"&gt;update&lt;/SPAN&gt;. All other properties will be left as they are. If you want to update description, then only provide the description argument in item_properties.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Any bright ideas on how to achieve this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2017 02:43:57 GMT</pubDate>
    <dc:creator>AlistairFox</dc:creator>
    <dc:date>2017-09-20T02:43:57Z</dc:date>
    <item>
      <title>replace hosted feature class data</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/replace-hosted-feature-class-data/m-p/875897#M4908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a set of hosted feature services that are already nicely symbolized.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have new data in a file geodatabase that needs to be uploaded to replace the previous version. This we can do using the python API and have running well. But our new layer has the default symbology.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we are trying the function below which seems to imply you can replace the Data for an item using an update call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its very vague as to what the data attribute is looking to accept. We have tried passing in a file gdb, &amp;nbsp;a new service url.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="" style="color: #000000; background: transparent; border: none; font-weight: bold;"&gt;&lt;SPAN class="" style="background: #f1c40f; font-weight: bold; padding: 0px 6px;"&gt;update&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;EM&gt;item_properties=None&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;data=None&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;thumbnail=None&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;metadata=None&lt;/EM&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 16px; margin: 0px 0px 12px !important 0px;"&gt;&lt;SPAN class="" style="background: #f1c40f; font-weight: bold; padding: 0px 6px;"&gt;Update&lt;/SPAN&gt;s an item in a Portal.&lt;/P&gt;&lt;DIV class="" style="background: #e7f2fa; margin-bottom: 24px; padding: 12px;"&gt;&lt;P class="" style="color: #ffffff; background: #6ab0de; font-weight: bold; font-size: inherit; margin: -12px -12px 12px; padding: 6px 12px;"&gt;Note&lt;/P&gt;&lt;P style="font-size: 16px; margin: 0px 0px 12px !important 0px;"&gt;That content can be a file (such as a layer package, geoprocessing package, map package) or it can be a URL (to an ArcGIS Server service, WMS service, or an application).&lt;/P&gt;&lt;P style="font-size: 16px; margin: 0px 0px 12px !important 0px;"&gt;If you are uploading a package or other file, provide a path or URL to the file in the data argument.&lt;/P&gt;&lt;P class="" style="font-size: 16px;"&gt;Only pass in arguments for properties you want to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="background: #f1c40f; font-weight: bold; padding: 0px 6px;"&gt;update&lt;/SPAN&gt;. All other properties will be left as they are. If you want to update description, then only provide the description argument in item_properties.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Any bright ideas on how to achieve this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 02:43:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/replace-hosted-feature-class-data/m-p/875897#M4908</guid>
      <dc:creator>AlistairFox</dc:creator>
      <dc:date>2017-09-20T02:43:57Z</dc:date>
    </item>
  </channel>
</rss>

