I have a webmap with lots of layers, that I want to set the visibility range for. I don't want to deal with this in Pro, since publishing it back to Online takes a long time. I can't go through every layer's settings and change the range individually.
Is there a way to change the map's reference scale in ArcGIS Online or achieve what I want using the ArcGIS API for Python?