ArcGIS Online REST API - Analyze task

3484
1
09-24-2014 07:04 AM
AshleyDePottey
New Contributor II

I am trying to push a CSV file and publish it as a feature service to an ArcGIS Online for Organization account and am finding the documentation here ArcGIS REST API incomplete and/or inconsistent. 

I have been attempting to analyze a CSV (for several days now), but all my requests are returning 200/OK with a mostly-blank html page.  I'd guess that means that I'm sending the wrong parameters, hitting the wrong url, or not setting some required header, but I've tried everything I can think of without success.  Here's what I'm POSTing:

URL: http://www.arcgis.com/sharing/rest/content/features/analyze

Data: token=[valid token]&itemid=fd8faaef968648949802b014bb034db6&filetype=csv

A few other things:

  • I've also tried setting the text parameter to my csv text (which is the goal in the long run) but produces the same result.
  • The documentation is unclear on whether the parameter should be called "id" or "itemid", with one sample and the parameter name as "itemid", but another example as "id".  I've tried both and get the same results

Anyone see this problem before or know a good way to troubleshoot this?

Tags (2)
0 Kudos
1 Reply
HeikoHeijenga
Esri Contributor

Make sure you do a POST request and set f=json

0 Kudos