Select to view content in your preferred language

Upload draft.json with python as a resource in ArcGIS Online Assistant

100
1
Jump to solution
2 weeks ago
RobinRutten_ams
New Contributor

I have a Python process where I duplicate a StoryMap, modify its JSON based on my analysis, and then publish it. However, during the duplication process, the draft.json file is not copied. As a workaround, I currently upload it manually as a resource using ArcGIS Online Assistant.

I've attempted to automate this step by writing Python code to upload the draft.json file, but so far, none of my attempts have been successful.

Does anyone know if there is a way to programmatically upload the draft.json file to ArcGIS Online? Any guidance or examples would be greatly appreciated!

0 Kudos
1 Solution

Accepted Solutions
OwenGeo
Esri Notable Contributor

@RobinRutten_ams - It is not recommended to manually edit or manage StoryMap files. You may not get the results you expect because there is a good amount of knowledge needed to ensure everything is being handled properly.

If you'd like to automate or manipulate StoryMaps programmatically, we recommend using the StoryMaps module of the ArcGIS API for Python. This will ensure the StoryMap item is managed as expected. Here is an article with more info: Automate ArcGIS StoryMap Edits with ArcGIS API for Python

If there is something you need that cannot be done with the Python API, please let us know so we can consider getting that added in a future update.

Owen Evans
Lead Product Engineer | StoryMaps

View solution in original post

0 Kudos
1 Reply
OwenGeo
Esri Notable Contributor

@RobinRutten_ams - It is not recommended to manually edit or manage StoryMap files. You may not get the results you expect because there is a good amount of knowledge needed to ensure everything is being handled properly.

If you'd like to automate or manipulate StoryMaps programmatically, we recommend using the StoryMaps module of the ArcGIS API for Python. This will ensure the StoryMap item is managed as expected. Here is an article with more info: Automate ArcGIS StoryMap Edits with ArcGIS API for Python

If there is something you need that cannot be done with the Python API, please let us know so we can consider getting that added in a future update.

Owen Evans
Lead Product Engineer | StoryMaps
0 Kudos