Select to view content in your preferred language

Accessing Dashboard JSON through Python API

665
1
02-02-2024 12:13 AM
Labels (1)
MuhammadNaufalIhsan
Occasional Contributor

Hi guys,

Is there any way we can access ArcGIS Dashboard JSON (like in AGO Assistant) through ArcGIS Python API?

The thing is, I want to create a script to change the webmap ID in a dashboard and change it using another webmap ID.

Regards,

Naufal

0 Kudos
1 Reply
chris_del101
Regular Contributor

Not really an answer, more the tacking on of another question:

I've been doing this through the rest api using the items resource with the /data addition. Not sure where this last part is documented. 

 

GET https://myPortal.net/portal/sharing/rest/content/items/fd1f7cb22b3f467fabb0a319bcf1a5e9/data?f=json

 

Using the dashboard ID returns the json, but I don't know how/if you can make changes. 

Where I get lost is in the json layout.  I'm trying to use it but it's inconsistent across dashboards and so modeling it is not possible. I'm searching for some docs describing how it's laid out, but so far I've not had any luck. 

0 Kudos