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!