[ckan-dev] creating a dataset record through the API
Rufus Pollock
rufus.pollock at okfn.org
Mon May 21 11:43:15 UTC 2012
On 21 May 2012 11:22, Keith Alexander
<keithalexander at keithalexander.co.uk> wrote:
> 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
Please try: http://thedatahub.org/api/rest/dataset
> (where dataset.json contains the json record of the dataset I want to add).
>
> But I get:
> "Access denied"
Also can you past on e.g. pastebin / gist the dataset.json you are uploading?
Rufus
> What am I doing wrong?
>
> Thanks in advance,
>
> Keith
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
--
Co-Founder, Open Knowledge Foundation
Promoting Open Knowledge in a Digital Age
http://www.okfn.org/ - http://blog.okfn.org/
More information about the ckan-dev
mailing list