CBuscaglia-esristaff

Publishing via Python to ArcGIS Online

Discussion created by CBuscaglia-esristaff Employee on Apr 16, 2013
Latest reply on Apr 22, 2013 by CBuscaglia-esristaff
Hello,

I have a question about publsihing a service to ArcGIS online via python.

I can sign in, upload service definition but not actually overwrite an existing service?  Or at lease I cannot find the arcpy references to do so, can someone help out?


arcpy.RegisterAsVersioned_management("Database Connections\MyServer.SDE\LocalGovernment.DBO.ParcelPublishing")
arcpy.SignInToPortal_server("xxxxxxxxx", "xxxxxxxxx", "http://www.arcgis.com/")
arcpy.UploadServiceDefinition_server("C:\Users\AdminChrisB\AppData\Local\Esri\Desktop10.1\Staging\My Hosted Services\TarrantCounty.sd", "My Hosted Services")

Thanks

Chris

Outcomes