[ckan-dev] creating a dataset record through the API

Keith Alexander keithalexander at keithalexander.co.uk
Mon May 21 10:22:47 UTC 2012


Hi,

I'm trying to create a new dataset record through the API.
>From reading the docs, I thought I could do:

curl -XPOST -d @dataset.json -H 'Authorization: myapikey'
http://thedatahub.org/api/rest/package

(where dataset.json contains the json record of the dataset I want to add).

But I get:
"Access denied"

What am I doing wrong?

Thanks in advance,

Keith




More information about the ckan-dev mailing list