<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot get storymap version from endpoint to save storymap in ArcGIS StoryMaps Questions</title>
    <link>https://community.esri.com/t5/arcgis-storymaps-questions/cannot-get-storymap-version-from-endpoint-to-save/m-p/1517054#M4782</link>
    <description>&lt;P&gt;Sorry - should have included preceding traceback. Occurs when:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;new_sm.save()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; But if I modify _utils.py to this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;198 #sm_version = story._gis._con.get("https://storymaps.arcgis.com/version")["version"]
199 sm_version = "9.2"&lt;/LI-CODE&gt;&lt;P&gt;I can save successfully.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 23:39:36 GMT</pubDate>
    <dc:creator>atmosfairy</dc:creator>
    <dc:date>2024-08-08T23:39:36Z</dc:date>
    <item>
      <title>Cannot get storymap version from endpoint to save storymap</title>
      <link>https://community.esri.com/t5/arcgis-storymaps-questions/cannot-get-storymap-version-from-endpoint-to-save/m-p/1516424#M4779</link>
      <description>&lt;P&gt;Hi there - cannot save storymap as cannot identify storymap version from endpoint (behind firewall) - need to hard code sm_version in code base.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;File ~/local/venv/lib/python3.11/site-packages/arcgis/apps/storymap/_utils.py:198, in save(story, title, tags, access, publish)

    195:    story._item.resources.update(file=temp.name, file_name=draft)
    197: # get storymap version from endpoint
--&amp;gt; 198: sm_version = story._gis._con.get("https://storymaps.arcgic.com/version")["version"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/600558"&gt;@NanaeAubry&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/37"&gt;@JohnYaist1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 23:43:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-storymaps-questions/cannot-get-storymap-version-from-endpoint-to-save/m-p/1516424#M4779</guid>
      <dc:creator>atmosfairy</dc:creator>
      <dc:date>2024-08-07T23:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get storymap version from endpoint to save storymap</title>
      <link>https://community.esri.com/t5/arcgis-storymaps-questions/cannot-get-storymap-version-from-endpoint-to-save/m-p/1516812#M4780</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/745726"&gt;@atmosfairy&lt;/a&gt;&amp;nbsp;, any reason your are accessing the item information directly in this use case?&lt;BR /&gt;From the code snippet it seems like you might be trying to change the draft information for the story, and then trying to update it.&lt;BR /&gt;&lt;BR /&gt;If you want to access the draft information for the story it should be available in the &lt;STRONG&gt;story._properties&lt;/STRONG&gt;&amp;nbsp;attribute. If you make your changes there you can just use &lt;STRONG&gt;story.save()&lt;/STRONG&gt;&amp;nbsp;to save those draft changes. I am not aware of any issues with the built in &lt;STRONG&gt;.save()&lt;/STRONG&gt;&amp;nbsp;method.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 17:21:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-storymaps-questions/cannot-get-storymap-version-from-endpoint-to-save/m-p/1516812#M4780</guid>
      <dc:creator>ThePreatorian</dc:creator>
      <dc:date>2024-08-08T17:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get storymap version from endpoint to save storymap</title>
      <link>https://community.esri.com/t5/arcgis-storymaps-questions/cannot-get-storymap-version-from-endpoint-to-save/m-p/1517054#M4782</link>
      <description>&lt;P&gt;Sorry - should have included preceding traceback. Occurs when:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;new_sm.save()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; But if I modify _utils.py to this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;198 #sm_version = story._gis._con.get("https://storymaps.arcgis.com/version")["version"]
199 sm_version = "9.2"&lt;/LI-CODE&gt;&lt;P&gt;I can save successfully.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 23:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-storymaps-questions/cannot-get-storymap-version-from-endpoint-to-save/m-p/1517054#M4782</guid>
      <dc:creator>atmosfairy</dc:creator>
      <dc:date>2024-08-08T23:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get storymap version from endpoint to save storymap</title>
      <link>https://community.esri.com/t5/arcgis-storymaps-questions/cannot-get-storymap-version-from-endpoint-to-save/m-p/1517608#M4785</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/745726"&gt;@atmosfairy&lt;/a&gt;&amp;nbsp;Thank you for the clarification. I passed along the issue to the python api team, and this will be fixed in the next python api release.&lt;BR /&gt;&lt;BR /&gt;For now, please continue to hard code the value in your current environment&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 17:17:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-storymaps-questions/cannot-get-storymap-version-from-endpoint-to-save/m-p/1517608#M4785</guid>
      <dc:creator>ThePreatorian</dc:creator>
      <dc:date>2024-08-09T17:17:50Z</dc:date>
    </item>
  </channel>
</rss>

