Is there a way to upload new, custom data to an ArcGIS Portal instance from Python?

In essence, I want to programmatically execute the steps involved in adding new GeoJSON content via the web-interface, but do everything from within a python script.

The context is that I'm doing analysis in Python on one machine, generating results, and want to upload that data as a feature layer to the GIS system.

I cannot use arcpy.


Yes. Make use of the ArcGIS Python API. It works with both ArcGIS Online and ArcGIS Portal. It does not require ArcGIS Pro/ArcMap to be installed. Just Python 3.x

See this example, Automate loading data into the ArcGIS Online cloud using ArcGIS API for Python, which seems to do exactly what you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.