Hello,
I'm wondering if there is a way to use ArcGIS API for python (or something else) to programmatically edit the field description and field value types for a hosted layer on ArcOnline or Portal. A description for how to do this via the layer's item page > Data tab is here:
https://doc.arcgis.com/en/arcgis-online/manage-data/describe-fields.htm#ESRI_SECTION1_C30D73392D964D51A8B606128A8A6E8F
But I'd like to be able to automate this because some of my layers have quite a lot of attributes. If, as it happens, layers break for some reason and I have to re-publish, I don't want to manually add this information in again.
Here is an example with a simple desciption and field value type manually added in.
