ckanaction

vocabulary_create

Create a new tag vocabulary.

You must a sysadmin to create vocabularies.

POST
vocabulary_create

Authorization

apiTokenHeader
Authorization<token>

CKAN API token

In: header

Request Body

application/json

name?string

the name of the new vocabulary, e.g. 'Genre'

tags?

the new tags to add to the new vocabulary, for the format of tag dictionaries see tag_create()

curl -X POST "http://localhost:5000/api/3/action/vocabulary_create" \  -H "Content-Type: application/json" \  -d '{}'