We are trying to automate data updates on our AGOL site. I have a script that zips up 4 shapefiles and uploads this to a specific folder in our Content. There is also a Feature Layer sitting in the folder created from the Shapefile data. Manually, you can open the Feature Layer and hit the 'Overwrite' button to update it. How do you program Python to achieve this same thing? I also played around with having python publish a new Feature Layer after it uploads the shapefile, but haven't found any examples where the shapefile sitting in the directly has multiple shapefiles in it. Hopefully, this all makes sense. Any help would be appreciated.
Hi Cynthia - Have you read these two blog posts? They might contain what you're looking for.
Updating ArcGIS.com Hosted Feature Services with Python | ArcGIS Blog
Updating your hosted feature service for 10.2 | ArcGIS Blog
-Adam Z