Is is possible to update the properties of a portal via the ArcGIS API for Python yet? I want to change the basemapGalleryGroupQuery property but can't find any way to do. I can access what I want to change using the following:
gis = GIS(PortalUrl, ArcGisOnlineUserName, ArcGisOnlinePassword)
display(gis.properties.basemapGalleryGroupQuery)
If not, is it possible to access the token generated after running GIS()? That way I could build an Update Rest request myself without having to separately request a token.
Solved! Go to Solution.
Michael you can get the token like this:
gis = GIS(portalurl, username, password)
token = gis._con._token
We are working on this capability currently, so in the subsequent releases you would be able to accomplish that using the API itself.
Michael you can get the token like this:
gis = GIS(portalurl, username, password)
token = gis._con._token
We are working on this capability currently, so in the subsequent releases you would be able to accomplish that using the API itself.
Hi Atma - thanks for your prompt response. That's perfect - I'll hack it for now and once the API is updated I can change the code accordingly.