<?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 AGOL Content Name and Share in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1110761#M429</link>
    <description>&lt;P&gt;just noticed that in your example you used&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;gis.content.get but when i use that it returns nothing but&amp;nbsp;gis.content.search returns my file...&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 10:59:14 GMT</pubDate>
    <dc:creator>StuartMoore</dc:creator>
    <dc:date>2021-10-25T10:59:14Z</dc:date>
    <item>
      <title>Update AGOL Content Name and Share</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1107852#M419</link>
      <description>&lt;P&gt;is it possible to change the title of a file thats stored in AGOL and share it with a group using AGOL Notebooks so that i can have it running as a task&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 11:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1107852#M419</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2021-10-15T11:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Update AGOL Content Name and Share</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1107958#M423</link>
      <description>&lt;P&gt;so i tried this to share my content&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fc_item = search_for_batch_reports[0]
fc_item.share(groups=['5edd............e68'])&lt;/LI-CODE&gt;&lt;P&gt;but all i get is this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
&amp;lt;ipython-input-61-44a9c5ed5fef&amp;gt; in &amp;lt;module&amp;gt;
      1 fc_item = search_for_batch_reports[0]
----&amp;gt; 2 fc_item.share(groups=['5edd............e68'])

TypeError: 'dict' object is not callable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 15:12:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1107958#M423</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2021-10-15T15:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update AGOL Content Name and Share</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1108578#M424</link>
      <description>&lt;P&gt;Hi Stuart, it appears your syntax is correct from what you've shown. See below for a working example. Is it possible your 'fc_item' variable isn't a valid item? What is 'search_for_batch_reports[0]'?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoshCullen_1-1634588242537.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25455i214F70BA4ECEFBEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoshCullen_1-1634588242537.png" alt="JoshCullen_1-1634588242537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding changing the title of an item, see the below code. Also see the relevant documentation here (note: it appears the example given here is broken - you cannot pass description, title, etc. as arguments. They must be inside a keyvalue pair dictionary):&amp;nbsp;&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.Item.update" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.Item.update&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoshCullen_3-1634589056947.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25457i1FF9E8C342D7F032/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoshCullen_3-1634589056947.png" alt="JoshCullen_3-1634589056947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LMK if you have any more questions.&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 20:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1108578#M424</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-10-18T20:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Update AGOL Content Name and Share</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1110760#M428</link>
      <description>&lt;P&gt;thanks&amp;nbsp;@Anonymous User&amp;nbsp;i tried that but got a slightly different error, is it because i am trying to share a Survey123 word document with a group rather than feature&lt;/P&gt;&lt;LI-CODE lang="python"&gt;search_for_batch_reports = gis.content.search("H..............1")
print("Search result: ", search_for_batch_reports)

search_for_batch_reports.share(groups=['5edd............e68'])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
&amp;lt;ipython-input-4-1e3c6c4eb4e2&amp;gt; in &amp;lt;module&amp;gt;
----&amp;gt; 1 search_for_batch_reports.share(groups=['5e.............e68'])

AttributeError: 'list' object has no attribute 'share'&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Oct 2021 10:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1110760#M428</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2021-10-25T10:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update AGOL Content Name and Share</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1110761#M429</link>
      <description>&lt;P&gt;just noticed that in your example you used&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;gis.content.get but when i use that it returns nothing but&amp;nbsp;gis.content.search returns my file...&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 10:59:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1110761#M429</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2021-10-25T10:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update AGOL Content Name and Share</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1119463#M444</link>
      <description>&lt;P&gt;got the sharing to work using this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis.content.share_items(items=search_for_batch_reports, groups=['5e................e68'])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 08:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/update-agol-content-name-and-share/m-p/1119463#M444</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2021-11-23T08:20:11Z</dc:date>
    </item>
  </channel>
</rss>

