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!
Solved! Go to Solution.
@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.
@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.