[ckan-dev] "Access denied" when POSTing to a dataset I created

Timothy Lebo lebot at rpi.edu
Tue Dec 6 18:16:56 UTC 2011


ckan-dev,

I am getting an "Access denied" message when trying to POST a modification to a dataset [1] that I originally created using the web page UI [0].

I used the following steps, based on [2]:

1) curl -O http://thedatahub.org/api/rest/package/white-house-visitor-access-records
2) modified local file "white-house-visitor-access-records" to include a tag ("tags": ["no-deref-vocab"])
3) curl http://thedatahub.org/api/rest/package/white-house-visitor-access-records -d @white-house-visitor-access-records -H "Authorization:Aa8...Bb2" 
(where "Aa8...Bb2" is my API key from http://thedatahub.org/user/timrdf)

I was successful in applying these steps to add a tag "no-deref-vocab" to the test dataset http://test.ckan.net/dataset/9f825e18-0e0c-40f6-8895-b5392c1ac18a, which I created according to [3].

Could anyone suggest what I am doing wrong?

Thank you for your consideration.

Regards,
Tim Lebo


[0] http://thedatahub.org/dataset/new
[1] http://thedatahub.org/dataset/white-house-visitor-access-records
[2] http://wiki.ckan.org/Using_the_API#Update_a_package
[3] http://wiki.ckan.org/Using_the_API#Create_a_package



More information about the ckan-dev mailing list