<?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 Using ItemProperties class and Item object update() method fails to update the properties. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-itemproperties-class-and-item-object-update/m-p/1512864#M10388</link>
    <description>&lt;P&gt;The ItemProperties class introduced as of API version 2.3.0 does not seem to work when updating an Item object, or perhaps I am missing something? Any help greatly appreciated.&lt;/P&gt;&lt;P&gt;The &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#itemproperties" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; for the ItemProperties states that the title and item_type parameters are required, why would you need these if you are updating and item? I can understand if using an add() method.&lt;/P&gt;&lt;P&gt;Anyway, I have failed in attempts to use the ItemProperties to update and Item.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    """set the tags property for the item properties"""
    item_properties = ItemProperties(
        title = item.title,
        item_type = item.type,
        tags = tags
    )

    """perform the update on the item object"""
    status = item.update(
        item_properties = item_properties
    )

    print(status)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also attempted to add the parameter overwrite = True to no affect. I get the following error.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;TypeError: argument of type 'ItemProperties' is not iterable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone successfully used the ItemProperties with an update() or is this an actual bug?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 10:46:49 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2024-07-31T10:46:49Z</dc:date>
    <item>
      <title>Using ItemProperties class and Item object update() method fails to update the properties.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-itemproperties-class-and-item-object-update/m-p/1512864#M10388</link>
      <description>&lt;P&gt;The ItemProperties class introduced as of API version 2.3.0 does not seem to work when updating an Item object, or perhaps I am missing something? Any help greatly appreciated.&lt;/P&gt;&lt;P&gt;The &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#itemproperties" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; for the ItemProperties states that the title and item_type parameters are required, why would you need these if you are updating and item? I can understand if using an add() method.&lt;/P&gt;&lt;P&gt;Anyway, I have failed in attempts to use the ItemProperties to update and Item.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    """set the tags property for the item properties"""
    item_properties = ItemProperties(
        title = item.title,
        item_type = item.type,
        tags = tags
    )

    """perform the update on the item object"""
    status = item.update(
        item_properties = item_properties
    )

    print(status)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also attempted to add the parameter overwrite = True to no affect. I get the following error.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;TypeError: argument of type 'ItemProperties' is not iterable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone successfully used the ItemProperties with an update() or is this an actual bug?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 10:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-itemproperties-class-and-item-object-update/m-p/1512864#M10388</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-07-31T10:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using ItemProperties class and Item object update() method fails to update the properties.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-itemproperties-class-and-item-object-update/m-p/1513549#M10391</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Did you ever find a solution for this?&lt;/P&gt;&lt;P&gt;I wonder if you are creating the wrong object for the &lt;EM&gt;&lt;FONT face="courier new,courier"&gt;update()&lt;/FONT&gt;&lt;/EM&gt; method on the &lt;STRONG&gt;item &lt;/STRONG&gt;object?&lt;/P&gt;&lt;P&gt;If you look at the documentation for the &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Item.update()&lt;/STRONG&gt;&lt;/FONT&gt; method:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#item" target="_blank"&gt;arcgis.gis module | ArcGIS API for Python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;...you will notice that the &lt;EM&gt;item_properties&lt;/EM&gt; argument requires a Python&amp;nbsp;&lt;EM&gt;dictionary&lt;/EM&gt; and not an &lt;EM&gt;ItemProperties&lt;/EM&gt; object which you are creating.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdMorris_0-1722513307933.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111338i4D52E24AE27A16C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="EdMorris_0-1722513307933.png" alt="EdMorris_0-1722513307933.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;key&lt;/EM&gt; : &lt;EM&gt;value&lt;/EM&gt; descriptions for the &lt;EM&gt;item_properties&lt;/EM&gt; dictionary are underneath parameter list for the method.&lt;/P&gt;&lt;P&gt;I hope this helps!?&lt;/P&gt;&lt;P&gt;many thanks ed&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 11:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-itemproperties-class-and-item-object-update/m-p/1513549#M10391</guid>
      <dc:creator>EdMorris</dc:creator>
      <dc:date>2024-08-01T11:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using ItemProperties class and Item object update() method fails to update the properties.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-itemproperties-class-and-item-object-update/m-p/1515531#M10405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/135968"&gt;@EdMorris&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your response. I know I can use a dictionary, but it seems that the API is going class driven with ItemProperties, ItemTypeEnums, and SharingLevel for examples and hints that the ItemProperties can be used for update() methods as per snippet below. So either the documentation is misleading/missing pertinent information, or it has not been implemented in the API for update() methods to accept the ItemProperties / bug.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clubdebambos_0-1722956299664.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111725iF2567858BF6FEC66/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clubdebambos_0-1722956299664.png" alt="Clubdebambos_0-1722956299664.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 15:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-itemproperties-class-and-item-object-update/m-p/1515531#M10405</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-08-06T15:07:06Z</dc:date>
    </item>
  </channel>
</rss>

