Programmatically Update ItemId of WebMap referenced by a Web Mapping Application

2311
6
Jump to solution
06-20-2017 01:35 PM
by Anonymous User
Not applicable

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! 

0 Kudos
1 Solution

Accepted Solutions
KellyGerrow
Esri Frequent Contributor

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

View solution in original post

6 Replies
RebeccaStrauch__GISP
MVP Emeritus

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.

0 Kudos
by Anonymous User
Not applicable

Thanks!  I was actually wondering how to do that. 

0 Kudos
RebeccaStrauch__GISP
MVP Emeritus

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.

by Anonymous User
Not applicable

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!  

0 Kudos
KellyGerrow
Esri Frequent Contributor

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

by Anonymous User
Not applicable

Hi Kelly,

I think this is the approach I am going to take.  Thank you for your suggestion! 

0 Kudos