I have published csv file as hosted feature layer on ArcGIS Portal 10.5.1. The layer is shown normally on the map. Then I update the layer by the overwrite function in the layer. But I want to automate the overwrite process. How can I make scripts to do so?
This blog post from 2017 outlines the steps you'll need to follow. I see that you can also use it to update data in a local Portal too.
Updating your hosted feature services with ArcGIS Pro and the ArcGIS API for Python
Hope this is helpful.
Thanks for your help. The script is for my client to update the layer but he does not have any ArcMap or ArcGIS Pro. Is it possible to use ArcGIS APIs only to write the script?
You can do it stand alone with Python Api for ArcGIS Pro. It works fine for me!
See this link overwriting_feature_layers | ArcGIS for Developers
Cheers Karsten
Thanks for your reply. The script is for my client use. He does not have any ArcMap or ArcGIS Pro, so the script can only rely on ArcGIS APIs. Is it possible to do so?