AnsweredAssumed Answered

Change a feature layer Url

Question asked by MCederholm on Mar 22, 2018
Latest reply on Oct 16, 2018 by MCederholm

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.manager.update_definition({ "url":sNewLayerUrl })

I get "RuntimeError: Invalid URL (Error Code: 400)". 

Outcomes