Does anyone have a sample script I can modify for my own use? I currently open a mxd with the layers in my table of contents and overwrite the features that way.
I ended up using a script I found on GitHub to accomplish this. Thanks for your help.
There's a blog on how to do this with Pro:
https://www.esri.com/arcgis-blog/products/api-python/analytics/updating-your-hosted-feature-services-with-arcgis-pro-and…
Which is built on using Python API, so you can look at that for functions you can use:
arcgis.gis module — arcgis 1.4.2 documentation
The publish item function has an "overwrite" parameter that can be used:
Publish Item—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.