<?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 Edit Dynamic Image Collection attribute table in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/edit-dynamic-image-collection-attribute-table/m-p/1627728#M11479</link>
    <description>&lt;P&gt;How can I use the Python API to edit the attribute table of an existing hosted dynamic image collection so I can set a date?&lt;/P&gt;&lt;P&gt;Using ArcGIS Pro, I manually created a mosaic dataset with time enabled and published as a hosted dynamic image collection to ArcGIS Online.&lt;/P&gt;&lt;P&gt;Now, using ArcGIS API for Python, I want to automate adding new images to the collection with dates. However, I cannot see anywhere that lets you set the date attribute.&lt;/P&gt;&lt;P&gt;I used these Dev Summit examples to add images to the collection:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=bd10a9f25d6c4dfab0db38cffda0901b" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=bd10a9f25d6c4dfab0db38cffda0901b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=306f5e24e56c4766858ecfab37206455" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=306f5e24e56c4766858ecfab37206455&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and tried:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sdf = fs.layers[0].query().sdf
sdf.loc[index, 'acquisitionDate'] = pd.to_datetime('2025-01-01 00:00:00', format='ISO8601').to_datetime64()
fs.layers[0].edit_features(updates=[sdf])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;but it returns the error&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AttributeError: 'ImageryLayer' object has no attribute 'edit_features'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jun 2025 11:55:35 GMT</pubDate>
    <dc:creator>nworbi</dc:creator>
    <dc:date>2025-06-27T11:55:35Z</dc:date>
    <item>
      <title>Edit Dynamic Image Collection attribute table</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/edit-dynamic-image-collection-attribute-table/m-p/1627728#M11479</link>
      <description>&lt;P&gt;How can I use the Python API to edit the attribute table of an existing hosted dynamic image collection so I can set a date?&lt;/P&gt;&lt;P&gt;Using ArcGIS Pro, I manually created a mosaic dataset with time enabled and published as a hosted dynamic image collection to ArcGIS Online.&lt;/P&gt;&lt;P&gt;Now, using ArcGIS API for Python, I want to automate adding new images to the collection with dates. However, I cannot see anywhere that lets you set the date attribute.&lt;/P&gt;&lt;P&gt;I used these Dev Summit examples to add images to the collection:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=bd10a9f25d6c4dfab0db38cffda0901b" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=bd10a9f25d6c4dfab0db38cffda0901b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=306f5e24e56c4766858ecfab37206455" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=306f5e24e56c4766858ecfab37206455&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and tried:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sdf = fs.layers[0].query().sdf
sdf.loc[index, 'acquisitionDate'] = pd.to_datetime('2025-01-01 00:00:00', format='ISO8601').to_datetime64()
fs.layers[0].edit_features(updates=[sdf])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;but it returns the error&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AttributeError: 'ImageryLayer' object has no attribute 'edit_features'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 11:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/edit-dynamic-image-collection-attribute-table/m-p/1627728#M11479</guid>
      <dc:creator>nworbi</dc:creator>
      <dc:date>2025-06-27T11:55:35Z</dc:date>
    </item>
  </channel>
</rss>

