<?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 What is the best way to update layer symbology using ArcGIS API for Python? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851420#M3851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#symbology &lt;A href="https://community.esri.com/t5/tag/api for python/tg-p"&gt;#api for python&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to update the symbology of a feature layer hosted on ArcGIS Online using the ArcGIS API for python?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Nov 2017 20:00:21 GMT</pubDate>
    <dc:creator>deleted-user-qPVBo_SO6NvL</dc:creator>
    <dc:date>2017-11-23T20:00:21Z</dc:date>
    <item>
      <title>What is the best way to update layer symbology using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851420#M3851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#symbology &lt;A href="https://community.esri.com/t5/tag/api for python/tg-p"&gt;#api for python&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to update the symbology of a feature layer hosted on ArcGIS Online using the ArcGIS API for python?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 20:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851420#M3851</guid>
      <dc:creator>deleted-user-qPVBo_SO6NvL</dc:creator>
      <dc:date>2017-11-23T20:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to update layer symbology using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851421#M3852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You indicate the '&lt;STRONG&gt;best'&lt;/STRONG&gt;, .... does that mean you are using a method &lt;A href="https://developers.arcgis.com/python/sample-notebooks/using-and-updating-gis-content/"&gt;&lt;STRONG&gt;documented here....&lt;/STRONG&gt;&lt;/A&gt; that you want to compare to? or are you looking for something specific?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 03:00:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851421#M3852</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-24T03:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to update layer symbology using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851422#M3853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm following this tutorial but it is not working for me. This is what I'm doing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #66d9ef;"&gt;from &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;arcgis &lt;/SPAN&gt;&lt;SPAN style="color: #66d9ef;"&gt;import &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;GIS
gis &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;GIS(&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;'username'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;'password'&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;)

search_result &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;gis.content.search(&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;'test'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;item_type&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;'Feature Layer Collection'&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;layer_collection&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;search_result[&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;]
layer = layer_collection[0]
layer&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;.properties.maxRecordCount &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;500
&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;layer_collection.update()
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The update returns True, however the maxRecordCount value is not updated in ArcGIS Online.&amp;nbsp; After supposedly updating the value printed is the layer's original maxRecordCount and not 500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #f8f8f2;"&gt;search_result &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;gis.content.search(&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;'test'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;item_type&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;'Feature Layer Collection'&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;layer_collection&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;search_result[&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;]
layer = layer_collection[0]
print(layer&lt;SPAN style="color: #f8f8f2;"&gt;.properties.maxRecordCount&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same thing happens when I try to update the drawing_info. I used maxRecordCount as an example for simplicity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851422#M3853</guid>
      <dc:creator>deleted-user-qPVBo_SO6NvL</dc:creator>
      <dc:date>2021-12-12T10:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to update layer symbology using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851423#M3854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does&amp;nbsp;the method demonstrated&amp;nbsp;here work for you?:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/" title="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/" rel="nofollow noopener noreferrer" target="_blank"&gt;Service definitions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; FeatureLayerCollection

gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'username'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'password'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

search_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;query&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title:test'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; item_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Feature Layer Collection'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
flc&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;FeatureLayerCollection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fromitem&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;search_result&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

flc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;manager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update_definition&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"maxRecordCount"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;500&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; flc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;manager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update_definition&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"maxRecordCount"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;500&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Check the results:&lt;/SPAN&gt;
search_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;query&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title:test'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; item_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Feature Layer Collection'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
flc&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;FeatureLayerCollection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fromitem&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;search_result&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Service max record count: {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;flc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;maxRecordCount&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Layer max record count: {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;flc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;maxRecordCount&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851423#M3854</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T10:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to update layer symbology using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851424#M3855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick. Thanks a lot. I hadn't found the update_definition method inside the manager classes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 22:57:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851424#M3855</guid>
      <dc:creator>deleted-user-qPVBo_SO6NvL</dc:creator>
      <dc:date>2017-11-28T22:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to update layer symbology using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851425#M3856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you also use this method to update the drawing info, such as the transparency of the layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 15:17:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851425#M3856</guid>
      <dc:creator>StephenRoss</dc:creator>
      <dc:date>2018-07-20T15:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to update layer symbology using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851426#M3857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The transparency of the layer ('opacity') can be edited upon creation of the feature layer via the add_layer function called over a WebMap just like so :&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;item_to_search = &lt;SPAN style="color: #6a8759;"&gt;'City_limits_' &lt;/SPAN&gt;+ &lt;SPAN style="color: #8888c6;"&gt;str&lt;/SPAN&gt;(municipality)
owner = &lt;SPAN style="color: #6a8759;"&gt;'XXXXXXXX'
&lt;/SPAN&gt;item = gis.content.search(&lt;SPAN style="color: #aa4926;"&gt;query&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;"title:" &lt;/SPAN&gt;+ item_to_search + &lt;SPAN style="color: #6a8759;"&gt;" AND owner: " &lt;/SPAN&gt;+ owner&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;item_type&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;"Feature Layer"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;sort_field&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'title'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;sort_order&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'asc'&lt;/SPAN&gt;)
&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(item)
item_selected = item[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;]
empty_webmap.add_layer(item_selected&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;options&lt;/SPAN&gt;={&lt;SPAN style="color: #6a8759;"&gt;'title'&lt;/SPAN&gt;:&lt;SPAN style="color: #6a8759;"&gt;'City limits'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;'opacity'&lt;/SPAN&gt;:&lt;SPAN style="color: #6a8759;"&gt;'0.4'&lt;/SPAN&gt;})&lt;/PRE&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M.C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:28:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851426#M3857</guid>
      <dc:creator>MaximeCampeau</dc:creator>
      <dc:date>2021-12-12T10:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to update layer symbology using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851427#M3858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's been a while since this was asked, but here's what I've been doing in a sample of my own&amp;nbsp;and it seems to work well:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; FeatureLayerCollection

gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;profile&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"arcgis_online"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Upload shapefile as zip archive, and publish new layer:&lt;/SPAN&gt;
shp &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcgis_enterprise&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;type&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Shapefile"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'D:\Path\To\Shapefile.zip'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
new_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; shp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;publish&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Update symbology of layer from an existing item used as a template:&lt;/SPAN&gt;
template_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"a86e128a1a5b472ca926be0ead7e0b10"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
flc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FeatureLayerCollection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fromitem&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;new_layer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
flc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;manager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update_definition&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"drawingInfo"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; template_layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'drawingInfo'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The drawingInfo property is a dictionary object that you can update as you see fit...though if you already have a layer with a matching schema that is published with a style you want to re-use, you can get it's drawingInfo property, and apply it to another layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:28:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851427#M3858</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T10:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to update layer symbology using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851428#M3859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to update the feature layer collection (change syncEnabled to True, add or remove editing capabilities) and have the same code as above, but get a runtime error: "Error performing update definition operation (error code: 500)" and cannot change the properties.&amp;nbsp; I've also attempted to send a post request to change the Feature Service properties, but that does not change the properties either (no error is thrown, and printing out the post response does not seem to be an error either).&amp;nbsp; My code, after publishing the Feature Service is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#configure Feature Layer properties&lt;BR /&gt;gis = GIS(PORTAL_URL, USERNAME, PASSWORD)&lt;BR /&gt;search_result = gis.content.search(service_name, 'Feature Layer')&lt;BR /&gt;fl_item = search_result[0]&lt;BR /&gt;fl_flc = FeatureLayerCollection.fromitem(fl_item)&lt;BR /&gt;update_dict = {"capabilities": "Query", "syncEnabled": True}&lt;BR /&gt;print(fl_flc.properties)&amp;nbsp; # you can see the properties targeted to be changed listed, they just do not get changed&lt;BR /&gt;fl_flc.manager.update_definition({"syncEndabled": True})#update_dict)&amp;nbsp; # this throws the 500 error&lt;BR /&gt;"""&lt;BR /&gt;# trying this a different way--post changes directly&lt;BR /&gt;import requests&lt;BR /&gt;URL =&amp;nbsp;PORTAL_URL&lt;BR /&gt;r = requests.post(URL, update_dict)&lt;BR /&gt;print(r.text)&amp;nbsp; # this prints the return html listed below&lt;BR /&gt;"""&lt;/P&gt;&lt;P&gt;commented out code's print statement displays:&lt;/P&gt;&lt;P&gt;HTML Request:&lt;BR /&gt;&amp;lt;!DOCTYPE html&amp;gt; &lt;BR /&gt;&amp;lt;html&amp;gt; &lt;BR /&gt;&amp;lt;head&amp;gt; &lt;BR /&gt; &amp;lt;script src="login/config/dojo.js"&amp;gt;&amp;lt;/script&amp;gt; &lt;BR /&gt; &amp;lt;script src="jsapi/dojo/dojo.js"&amp;gt;&amp;lt;/script&amp;gt; &lt;BR /&gt; &amp;lt;script&amp;gt; &lt;BR /&gt; require(["login", "dojo/domReady!"], function(login) { &lt;BR /&gt; login.run(); &lt;BR /&gt; }); &lt;BR /&gt; &amp;lt;/script&amp;gt; &lt;BR /&gt;&amp;lt;/head&amp;gt; &lt;BR /&gt;&amp;lt;body&amp;gt; &lt;BR /&gt;&amp;lt;/body&amp;gt; &lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am ultimately trying to automate the publishing of feature classes to Feature Services then bundle several Feature Services into a shared web map (must be automated as the underlying feature classes can vary from map to map, and there are hundreds of map needed to be shared).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2019 15:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-is-the-best-way-to-update-layer-symbology/m-p/851428#M3859</guid>
      <dc:creator>MatthewWalker</dc:creator>
      <dc:date>2019-10-08T15:52:24Z</dc:date>
    </item>
  </channel>
</rss>

