How to NOT update item details when updating the metadata using the Python API

353
0
05-28-2021 05:12 PM
AliciaWood
New Contributor

I have a script that loops through a bunch of AGOL items and updates the item metadata from XMLs.

 

layer.update(metadata=xml_path)

 

When it does so, the item summary & description are automatically updated with text from that XML. Is it possible to have it not do this? I need to update the item metadata but also need the item summary to be left blank.

Alternatively, if this isn't possible, is there a way to delete the summary text afterwards? I know you can manually delete the text in ArcGIS Online, but anytime I try to replace it with an empty string or None value with the Python API it doesn't overwrite the existing text from the XML.

 

summary = None
layer.update(item_properties={'snippet':summary})

 

 I am using the following version of the Python API: 1.7.0

0 Kudos
0 Replies