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:
Anyone see this problem before or know a good way to troubleshoot this?
Make sure you do a POST request and set f=json