Using the ArcGIS Python API and Jupyter Notebook, I've figured out how to automate the creation of multiple web maps in our portal based on copying a "master" web map. During this process, I update only a few things on the new maps (title, description, initial extent, definition expression on a layer).
But with the automation of creating 50+ web maps, I am now trying to figure out how I could automate updating all these maps if there were a change in the "master" web map.
I have a couple similar ideas, but not sure how to implement them, or if they are even possible. Or if there is a more efficient solution to this...
1) Deep copy of the "master" webmap dictionary (ignoring the keys that cannot change in the map to be updated - ex. id, created, title, extent, layer definition expression) and then using the copy to replace all the other keys in my "map-to-be-updated"
2) Comparing the dictionaries of the "master" and "map-to-be-updated", find any differences (again ignoring the keys that cannot change) and taking the differences found and applying them to the "map-to-be-updated"
I'm also not entirely sure how to search for and work with multiple items based on the examples provided... if anyone has info on that as well.
I've reviewed (and used) these examples the most:
Publishing web maps and web scenes | ArcGIS for Developers
Using and updating GIS content | ArcGIS for Developers
I'm fairly new to Python as well, so any suggestions would be appreciated!