Need help with create StoryMap using ArcGIS API for Python

314
2
Jump to solution
01-10-2024 01:08 AM
Labels (2)
Tbones
by
New Contributor

Hi,I have some question about creating story map from coding using python.
This is my code

 

from arcgis.gis import GIS

portal_url = "https://your-organization/portal"
gis = GIS(url=portal_url, username="YourName", password="YourPassword")

storymap_item = gis.content.add({"type": "StoryMap",'title': 'My Test Python Story2'
                                } , owner = "YourName")
storymap_item.share(everyone=False)  

storymap_url = storymap_item.homepage
print(f"StoryMap URL: {storymap_url}")

 

 
It's create story map in my content but it can't be view or edit like create with normal way
 

SarutTheesungnern_1-1704877531500.png


Does anyone has solution for creating Story map from python or have docs for help?
Appreciate all answers, btw sorry for my bad english.



Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Tbones
by
New Contributor

Thank you for the answer. I already fix it by using arcgis.apps.storymap import StoryMap.

View solution in original post

0 Kudos
2 Replies
CodyPatterson
Occasional Contributor III

Hey @Tbones 

Is there any difference if you change the sharing level to everyone or org?

storymap_item.share(everyone=True, org=True)

 

Cody

0 Kudos
Tbones
by
New Contributor

Thank you for the answer. I already fix it by using arcgis.apps.storymap import StoryMap.

0 Kudos