Scripts to Overwrite Hosted Feature Layer

2276
4
10-09-2018 10:35 AM
MatsHardy
Occasional Contributor

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?

0 Kudos
4 Replies
deleted-user-qpvAI3Fo0MKR
Occasional Contributor III

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.

0 Kudos
MatsHardy
Occasional Contributor

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?

0 Kudos
KarstenRank
Occasional Contributor III

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

0 Kudos
MatsHardy
Occasional Contributor

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?

0 Kudos