Is it possible to change the Url of a FeatureLayer? For example, changing
"https://oldserver/arcgis/rest/services/myfolder/mymapservice/MapServer/1"
to
"https://newserver/arcgis/rest/services/myfolder/mymapservice/MapServer/1"
When I try this:
fLyr<SPAN class="punctuation token">.</SPAN>manager<SPAN class="punctuation token">.</SPAN>update_definition<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN> <SPAN class="string token">"url"</SPAN><SPAN class="punctuation token">:</SPAN>sNewLayerUrl <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>I get "RuntimeError: Invalid URL (Error Code: 400)".