[ckan-dev] datastore set up error
roger
roger_ke at 163.com
Fri Jun 13 00:57:35 UTC 2014
Hi,
i installed ckan2.2 from package on ubuntu 12.04 and tried to set up the datastore,
when i run test the set up of datastore with command
curl -X POST http://127.0.0.1:5000/api/3/action/datastore_create -H "Authorization: {YOUR-API-KEY}" -d '{"resource_id": "{RESOURCE-ID}", "fields": [ {"id": "a"}, {"id": "b"} ], "records": [ { "a": 1, "b": "xyz"}, {"a": 2, "b": "zzz"} ]}'
i replaced my api key and the resource id,
and i received the error that can not edit read-only resources, either pass force = true or change url type to datastore.
Then how to pass force = true ?
Thanks,
Roger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140613/fce333b5/attachment-0002.html>
More information about the ckan-dev
mailing list