Skip to content

Commit

Permalink
[ckan#2944] Update API docs for import datasets example
Browse files Browse the repository at this point in the history
Add missing 'owner_org' field for package_create, since it is a required field.
  • Loading branch information
Aleksandar Jovanov committed Jun 17, 2017
1 parent 54d6c9b commit 19460ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/index.rst
Expand Up @@ -184,6 +184,7 @@ to import datasets into CKAN.
dataset_dict = {
'name': 'my_dataset_name',
'notes': 'A long description of my dataset',
'owner_org': 'org_id_or_name'
}

# Use the json module to dump the dictionary to a string for posting.
Expand Down Expand Up @@ -336,7 +337,7 @@ A list of all tags:
* browser: http://demo.ckan.org/api/3/action/tag_list
* curl: ``curl http://demo.ckan.org/api/3/action/tag_list``
* ckanapi: ``ckanapi -r http://demo.ckan.org action tag_list``

Top 10 tags used by datasets:

* browser: http://demo.ckan.org/api/action/package_search?facet.field=[%22tags%22]&facet.limit=10&rows=0
Expand Down

0 comments on commit 19460ad

Please sign in to comment.