[GIS] ArcGIS Online – Programmatically Upload Tabular Data Source

arcgis-online

I have some ArcGIS Online maps and want to reference a simple data source like a CSV or XML file. I know that I can upload the file, but is there a way I could programmatically upload the data file on a scheduled basis? Or in other words, is there an API that I can use in a program or script that allows me to send data files to my ArcGIS Online storage location?

The first thought I had was to write a program that connects as me and sends the file by POSTing to the web service, but there might be a better way.

Best Answer

Take a look at the Add Item and Publish Item operations in the REST API. There are some good examples of using the REST API with Python on Github (e.g., the Esri AGO Tools repository and oevans's GIST. There are some in the ArcGIS Javascript API, too.

Related Question