<?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: Overwriting hosted AGOL web service and retaining editing capabilities in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwriting-hosted-agol-web-service-and-retaining/m-p/1006109#M5262</link>
    <description>&lt;P&gt;I think I have what I'm looking for in this post..&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with-the-arcgis/td-p/813173" target="_blank"&gt;How do I make a hosted feature layer editable with... - GeoNet, The Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 06:59:38 GMT</pubDate>
    <dc:creator>JoelPerkins</dc:creator>
    <dc:date>2020-12-02T06:59:38Z</dc:date>
    <item>
      <title>Overwriting hosted AGOL web service and retaining editing capabilities</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwriting-hosted-agol-web-service-and-retaining/m-p/1006028#M5261</link>
      <description>&lt;P&gt;I am trying to overwrite a hosted feature layer in AGOL that has editing enabled on it. When I update the service, the editing capability of the service is removed. I'd like to retain it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seemed like this could be fixed by adding JSON params to the arcgis.gis publish method. Are my publishing_parameters correct below? Or am I going about this wrong?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.mp.CreateWebLayerSDDraft(mp, sddraft, sd_fs_name,'MY_HOSTED_SERVICES', 'FEATURE_ACCESS',None, True, True, True)
    arcpy.StageService_server(sddraft, sd)
    sdItem = gis.content.search("{} AND owner:{} ".format(sd_fs_name, agolUsername), item_type="Service Definition")[0]
    sdItem.update(data=sd)
    pub_params = {"layerInfo" : {"capabilities": "Editing"}}
    fs = sdItem.publish(publish_parameters=pub_params, overwrite=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 22:03:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwriting-hosted-agol-web-service-and-retaining/m-p/1006028#M5261</guid>
      <dc:creator>JoelPerkins</dc:creator>
      <dc:date>2020-12-01T22:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting hosted AGOL web service and retaining editing capabilities</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/overwriting-hosted-agol-web-service-and-retaining/m-p/1006109#M5262</link>
      <description>&lt;P&gt;I think I have what I'm looking for in this post..&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with-the-arcgis/td-p/813173" target="_blank"&gt;How do I make a hosted feature layer editable with... - GeoNet, The Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 06:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/overwriting-hosted-agol-web-service-and-retaining/m-p/1006109#M5262</guid>
      <dc:creator>JoelPerkins</dc:creator>
      <dc:date>2020-12-02T06:59:38Z</dc:date>
    </item>
  </channel>
</rss>

