Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CKAN API documentation #2944
CKAN Version if known (or site URL)
I've tried today to create a simple API example for an institution, that only contained creating a dataset and creating a resource for that dataset. However, I've gone through two problems and it took me a lot more time than expected.
Is it okay if I go and change the docs and add to-do items within the corresponding issues?
These issues are pretty easy to work around.
You can change your ckan.auth.create_unowned_dataset and ckan.auth.create_dataset_if_not_in_organization settings if you want to allow datasets to be created with no owner_org value, or you can provide the owner's id or name field value as the owner_org value.
Resources need a url to be set until I finish work on #2844, but you can put any value you want in there for now.
Yes please, feel free to update the current docs if it's unclear how to successfully create a dataset with the API.
@wardi I'll update the docs for missing
Edit: One more thing I noticed is that in the API docs for creating a dataset http://docs.ckan.org/en/latest/api/index.html#ckan.logic.action.create.package_create it says that
I propose we should clarify that by default an organization is must provided, except