Is there any method for replacing a service definition in AGOL for a hosted feature service, if the SD is accidentally deleted?
This is a feature service that is updated/overwritten weekly.
Thanks for any suggestions!
Hi Adam,
Having the SD file is only required when publishing from ArcMap. If you must publish from ArcMap, i suggest republishing the sd file and feature layer. You can enable delete protection on the sd file to prevent it from being deleted accidentally. You can overwrite feature services from SD files through the Rest API or using ArcGIS Pro without having an uploaded SD file.
Here is a sample script that is publishing from an FGDB, but the same concept applies:
http://cloudygis.maps.arcgis.com/home/item.html?id=2d7027b148e24005916e55ab2cb74b50
or publish through the ArcGIS Python API
arcgis.gis module — arcgis 1.2.0 documentation
-Kelly