ckanaction

vocabulary_create

POST
vocabulary_create

Create a new tag vocabulary.

You must a sysadmin to create vocabularies.

Authorization

apiTokenHeader
headerAuthorization<token>

CKAN API token

Request Body

application/json
  1. body
name?string

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

tags?array<>

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

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