I am trying to update the 'Credits' property (feature services and views) using arcgis api for python and I have had no luck. I've tried 'update' on the item and 'update_definition' on the flc and I don't see a 'credits' property. Can someone explain who this is done? I can do rudimentary jupyter notebooking, but haven't been able to find the correct property.
Thank you,
Randy McGregor
Solved! Go to Solution.
Hi Randy,
This should do it.
fs = gis.content.get([the itemID])
fs.update(item_properties = {'accessInformation': " Micheal, Catherine, Amanda"})
Other parameters that you can update are here: https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#item, search for "update(item_properties=None, data=None, thumbnail=None, metadata=None)¶"
Just make sure the account you're signed in as in Pro is the owner of the item in AGO.
Hi Randy,
This should do it.
fs = gis.content.get([the itemID])
fs.update(item_properties = {'accessInformation': " Micheal, Catherine, Amanda"})
Other parameters that you can update are here: https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#item, search for "update(item_properties=None, data=None, thumbnail=None, metadata=None)¶"
Just make sure the account you're signed in as in Pro is the owner of the item in AGO.
Oh my gosh. I would not have thought 'accessInformation' is the property for 'Credits (Attribution).' Thank you. That did it.
You're very welcome!