[ckan-dev] Unable to create a new resource in a package using CKAN API in Python
David
davisoski at gmail.com
Wed Dec 21 01:38:32 UTC 2016
Hi.
I'm trying to create a new resource in my package (created using API)
and I have no errors but the resource is not created.
I have modified the example in:
http://docs.ckan.org/en/latest/maintaining/filestore.html#filestore-api
with my key and my file
*import requests****requests.post('http://demo.ckan.org/api/3/action/resource_create',****data={"package_id":"my_dataset_naaaaaaame"},****headers={"X-CKAN-API-Key": "97caad21-8632-4372-98fe-a24cdcaa90dc"},****files=[('upload', file("C:\\restaurantes.geojson"))])****print "End of Task"*
Any idea about this problem?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161221/a234b0dd/attachment-0002.html>
More information about the ckan-dev
mailing list