Create content type with taxonomy

POST https://{{base_url}}/v3/content_types

The Create content type with taxonomy request shows you how to add a taxonomy field while creating a content type.

To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken. 
Read more about it in Authentication.


For more information, refer to the Create content type with taxonomy API Reference document

Request Body

{"content_type"=>{"title"=>"Products", "uid"=>"products", "schema"=>[{"data_type"=>"text", "display_name"=>"Title", "field_metadata"=>{"_default"=>true, "version"=>3}, "mandatory"=>true, "uid"=>"title", "unique"=>true, "multiple"=>false, "non_localizable"=>false}, {"data_type"=>"taxonomy", "display_name"=>"Taxonomy", "uid"=>"taxonomies", "taxonomies"=>[{"taxonomy_uid"=>"sample_one", "max_terms"=>5, "mandatory"=>true, "non_localizable"=>false}, {"taxonomy_uid"=>"sample_two", "max_terms"=>10, "mandatory"=>true, "non_localizable"=>false}], "field_metadata"=>{"description"=>"", "default_value"=>""}, "format"=>"", "error_messages"=>{"format"=>""}, "mandatory"=>false, "multiple"=>true, "non_localizable"=>false, "unique"=>false}]}, "options"=>{"is_page"=>false, "singleton"=>true, "title"=>"title"}}

HEADERS

KeyDatatypeRequiredDescription
api_keystringEnter the API Key of the stack.
authtokenstringEnter your authtoken.
authorizationstringFor this call we recommend you to use management token.
Content-Typestring