<?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: Update Thumbnail for AGO Item (web map/web app) using python api gis.item.update file not found error in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1036216#M38928</link>
    <description>&lt;P&gt;Thanks!&amp;nbsp; I am using an AGOL notebook and adding the file to the files tab in the notebook did the trick!&lt;/P&gt;&lt;P&gt;Best! and have a great weekend!&lt;/P&gt;</description>
    <pubDate>Sat, 13 Mar 2021 01:22:59 GMT</pubDate>
    <dc:creator>EdApalinski</dc:creator>
    <dc:date>2021-03-13T01:22:59Z</dc:date>
    <item>
      <title>Update Thumbnail for AGO Item (web map/web app) using python api gis.item.update file not found error</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1036099#M38922</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to use the .update(thumbnail) as described in the &lt;A href="https://developers.arcgis.com/python/guide/managing-your-content/" target="_self"&gt;ArcGIS API for Python&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="c1"&gt;# updating thumbnail&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;volcanoes_item&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;update&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;thumbnail&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="sa"&gt;r&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'pathway\to\your\directory\IMAGE_NAME.jpg'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;however I am getting a File not found error.&amp;nbsp; my statement and a copy of the error are below.&amp;nbsp; Any advise will be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 914px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8343iB45DEEC70300DA26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 19:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1036099#M38922</guid>
      <dc:creator>EdApalinski</dc:creator>
      <dc:date>2021-03-12T19:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Update Thumbnail for AGO Item (web map/web app) using python api gis.item.update file not found error</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1036135#M38924</link>
      <description>&lt;P&gt;It looks like you're running the code from an ArcGIS Online Notebook, is that correct?&lt;/P&gt;&lt;P&gt;If you are:&lt;/P&gt;&lt;P&gt;In order for the notebook to access the file you want to update the thumbnail with, the python kernel running in the notebook needs to be able to see that directory. If you're using an AGOL notebook, it's actually in a container on a server machine, and won't have that sort of access.&lt;/P&gt;&lt;P&gt;You'll have to add the files to the file directory that's part of the notebook's container, using the &lt;STRONG&gt;Files&lt;/STRONG&gt; tab.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1615583928259.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8349i908C4D36BDF38CDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1615583928259.png" alt="jcarlson_0-1615583928259.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can then access that file with the path to the directory in the files tab, or click the "+" icon to add it to a cell in your notebook.&lt;/P&gt;&lt;P&gt;Let me know if you're &lt;EM&gt;not&lt;/EM&gt; using the AGOL / Portal notebook, as that might indicate a totally different problem.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 21:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1036135#M38924</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-12T21:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Update Thumbnail for AGO Item (web map/web app) using python api gis.item.update file not found error</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1036216#M38928</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; I am using an AGOL notebook and adding the file to the files tab in the notebook did the trick!&lt;/P&gt;&lt;P&gt;Best! and have a great weekend!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 01:22:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1036216#M38928</guid>
      <dc:creator>EdApalinski</dc:creator>
      <dc:date>2021-03-13T01:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Update Thumbnail for AGO Item (web map/web app) using python api gis.item.update file not found error</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1220723#M48286</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;Do you know how to do this in Portal?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Aaron&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 14:34:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1220723#M48286</guid>
      <dc:creator>AaronPaul5</dc:creator>
      <dc:date>2022-10-11T14:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Update Thumbnail for AGO Item (web map/web app) using python api gis.item.update file not found error</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1239178#M49241</link>
      <description>&lt;P&gt;Piggybacking off of what Aaron requested, I would also like to know how to perform this action in Portal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 15:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1239178#M49241</guid>
      <dc:creator>se2539</dc:creator>
      <dc:date>2022-12-08T15:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update Thumbnail for AGO Item (web map/web app) using python api gis.item.update file not found error</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1336576#M54990</link>
      <description>&lt;P&gt;This is not very well documented it seems.&lt;/P&gt;&lt;P&gt;Something like this seems to work though:&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;gis = GIS("home")&lt;BR /&gt;import requests&lt;/P&gt;&lt;P&gt;olduser = gis.users.get(&amp;lt;username1&amp;gt;)&lt;/P&gt;&lt;P&gt;newuser = gis.users.get(&amp;lt;username2&amp;gt;)&lt;/P&gt;&lt;P&gt;with open("&amp;lt;filename&amp;gt;",'wb') as f:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;f.write(olduser.get_thumbnail())&lt;/P&gt;&lt;P&gt;newuser.update(olduser.access, olduser.preferredView, olduser.description, olduser.tags, r"&amp;lt;filename&amp;gt;", culture=olduser.culture, region=olduser.region)&lt;/P&gt;&lt;P&gt;This is just the basic procedure of course, needs some more work, e.g. getting the correct file type from get_thumbnail_link(), and if possible cutting out the step to save the thumbnail to disk.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 15:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/update-thumbnail-for-ago-item-web-map-web-app/m-p/1336576#M54990</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2023-10-10T15:00:57Z</dc:date>
    </item>
  </channel>
</rss>

