I have a feature layer that was created by adding a URL to an ArcGIS web service, it works just fine. The problem is I would like to change the source URL for the layer. This would seem easy to do using the ArcGIS Assistant by editing the JSON “sourceUrl” with the new URL. When I edit and save the, the message, “Saved!” shows up. Upon refreshing the page, I notice that the “sourceUrl” has been changed back to the original url thus not actually saving. Just curious if anybody else has dealt with this and if there is a possible workaround. The object of this is to change the source URL without changing the REST endpoint URL on the ArcGIS Online side of things.
If I understand the original post correctly, I'd also like this ability.
I think this would allow me to have several maps access a feature layer using this 'proxy' url (utility.arcgis.com/...) and by changing the sourceUrl simplify redirecting all these maps to a different copy of the feature layer (updated, but with the same schema) This would make for an easier/safer workflow in cases where we want to recreate a layer (before deleting the original) to have AGOL recalculate correct file/feature sizes to account for bulk deleted features (BUG-000135310) and reduce our credit usage.
Hi @MikeLongtine On ArcGIS Online Assistant, have you tried the option to Update the URLs of Services in a Web map?
Once you select the Web map, you can Find and Replace the URLs for operational layers. However, this carries the risk of losing any layer configuration you have modified and saved to the Web map.
Hope this helps!