[ckan-dev] Creating a Datastore resource via the API
Reinier Battenberg
reinier.battenberg at mountbatten.net
Thu Mar 13 10:23:32 UTC 2014
did you also try a package_id like "jaystest" and then made it more complex
(capitals, spaces and finally a ' ) until it breaks?
On Thursday 13 March 2014 22:53:08 Jay Daley wrote:
> Hi
>
> As I understand it from the documentation I should be able to create a
> Datastore resource by specifying "resource" and a dictionary that has the
> package_id and not specify a resource_id . e.g.
>
> { "resource" : { "package_id" : "Jay's Test" } }
>
> which I'm using against http://demo.ckan.org/api/3/action/datastore_create
> with a POST and my API key.
>
> However the error message I'm getting seems to contradict that:
>
> "success": false, "error": {"message": "Missig id, can not get Resource
> object", "__type": "Validation Error"}
>
> Have I misunderstood the documentation?
>
> cheers
> Jay
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
--
rgds,
Reinier Battenberg
Director
Mountbatten Ltd.
www.mountbatten.net
tel: +256 758 801749
twitter: @batje
More information about the ckan-dev
mailing list