Hello!
Does anyone know if it is at all possible to programmatically update/modify the configuration of a Web Mapping Application constructed with the Web App Builder to change/update the Itemid of a WebMap it references? I've investigated this using the ArcGIS API for Python, and haven't found a way to accomplish this. I'd be grateful for any ideas you might have.
Thanks!
Solved! Go to Solution.
You should check this with Web AppBuilder, but generally, you can retrieve the item data using this call:
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Item_Data/02r300000075000000/
And then modify and update the data text using this call:
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Update_Item/02r30000009s000000/
-Kelly
Maura, you don't need (and shouldn't) duplicate post on Geonet. You can select one of the areas and then tag the other.
Programmatically Update ItemId of WebMap referenced by a Web Mapping Application on ArcGIS API for Python
https://community.esri.com/message/695366-programmatically-update-itemid-of-webmap-referenced-by-a-w... on ArcGIS Online
Tagging both to show ArcGIS Online ArcGIS API for Python
I would stick with one post and delete the other ....if I need to delete my comment for you to do so, let me know.
Thanks! I was actually wondering how to do that.
Have you looked at the various admin options Tools · Esri/ago-admin-wiki Wiki · GitHub ??
I seem to recall that one of those tools had a way to do this, although I'm not sure how automated. I have not done it myself.
ArcGIS Online Assistant appears to allow you to modify the JSON of items such as web mapping applications. I might have to take a look at their code to see exactly how they'd doing that. Thanks for the idea!
You should check this with Web AppBuilder, but generally, you can retrieve the item data using this call:
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Item_Data/02r300000075000000/
And then modify and update the data text using this call:
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Update_Item/02r30000009s000000/
-Kelly
Hi Kelly,
I think this is the approach I am going to take. Thank you for your suggestion!