<?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 Updating spatial view rings - Update response:  {'success': True} but no update in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/updating-spatial-view-rings-update-response/m-p/1693102#M68300</link>
    <description>&lt;P&gt;I am trying to update my spatial view rings in the service defintion with the script below. It returns&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Update response:
 {'success': True}&lt;/PRE&gt;&lt;P&gt;but the service does not update.&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;itemid = "XXXXXXXXXXXXXXXXXXXXXX"
view_item = gis.content.get(itemid)
view_layer = view_item.layers[0]
new_rings = [
    [-107.410893147789, 37.0587069440029], 
                  [-107.735363597039, 37.0894217540605], 
                  [-107.695531014991, 37.0676617431684], 
                  [-107.705664997627, 37.0367398691148], 
                  [-107.789459026389, 37.0351318539168], 
                  [-107.810893147789, 37.0587069440029]  # close the ring
]


update_definition = {
    "adminLayerInfo": {
        "viewLayerDefinition": {
            "filter": {
                "value": {
                    "geometry": {
                        "rings": [new_rings]
                    }
                }
            }
        }
    }
}

update_response = view_layer.manager.update_definition(update_definition)
print("Update response:\n", update_response)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2026 13:52:07 GMT</pubDate>
    <dc:creator>TL2</dc:creator>
    <dc:date>2026-03-27T13:52:07Z</dc:date>
    <item>
      <title>Updating spatial view rings - Update response:  {'success': True} but no update</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/updating-spatial-view-rings-update-response/m-p/1693102#M68300</link>
      <description>&lt;P&gt;I am trying to update my spatial view rings in the service defintion with the script below. It returns&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Update response:
 {'success': True}&lt;/PRE&gt;&lt;P&gt;but the service does not update.&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;itemid = "XXXXXXXXXXXXXXXXXXXXXX"
view_item = gis.content.get(itemid)
view_layer = view_item.layers[0]
new_rings = [
    [-107.410893147789, 37.0587069440029], 
                  [-107.735363597039, 37.0894217540605], 
                  [-107.695531014991, 37.0676617431684], 
                  [-107.705664997627, 37.0367398691148], 
                  [-107.789459026389, 37.0351318539168], 
                  [-107.810893147789, 37.0587069440029]  # close the ring
]


update_definition = {
    "adminLayerInfo": {
        "viewLayerDefinition": {
            "filter": {
                "value": {
                    "geometry": {
                        "rings": [new_rings]
                    }
                }
            }
        }
    }
}

update_response = view_layer.manager.update_definition(update_definition)
print("Update response:\n", update_response)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 13:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/updating-spatial-view-rings-update-response/m-p/1693102#M68300</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2026-03-27T13:52:07Z</dc:date>
    </item>
  </channel>
</rss>

