Create content type with JSON RTE plugin

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

The Create content type with JSON RTE plugin request allows you to create a content type that includes JSON RTE plugins within the JSON Rich Text Editor.

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 JSON RTE plugin API Reference document

Request Params

KeyDatatypeRequiredDescription
include_branchbooleanSet this to 'true' to include the '_branch' top-level key in the response. This key states the unique ID of the branch where the concerned Contentstack module resides.

Request Body

{"content_type"=>{"title"=>"Sample CT with JSON RTE Plugins", "uid"=>"sample_ct_with_plugins", "schema"=>[{"display_name"=>"Title", "uid"=>"title", "data_type"=>"text", "field_metadata"=>{"_default"=>true}, "mandatory"=>true, "unique"=>true, "multiple"=>false, "non_localizable"=>false}, {"display_name"=>"URL", "uid"=>"url", "data_type"=>"text", "field_metadata"=>{"_default"=>true}, "unique"=>false, "multiple"=>false}, {"data_type"=>"json", "display_name"=>"JSON Rich Text Editor", "uid"=>"json_rte", "field_metadata"=>{"allow_json_rte"=>true, "embed_entry"=>false, "description"=>"", "default_value"=>"", "multiline"=>false, "rich_text_type"=>"basic"}, "reference_to"=>["sys_assets"], "multiple"=>false, "non_localizable"=>false, "unique"=>false, "mandatory"=>false, "plugins"=>["blt58a13863db325d6b", "bltd6b2c2c3eeca106c", "blt13415f84cf5ea6e2"]}], "options"=>{"title"=>"title", "publishable"=>true, "is_page"=>true, "singleton"=>false, "sub_title"=>["url"], "url_pattern"=>"/:title", "url_prefix"=>"/"}}}

HEADERS

KeyDatatypeRequiredDescription
api_keystringEnter the API key of the stack.
authtokenstringEnter your authtoken.
authorizationstringFor this call we recommend you to use management token.
Content-TypestringEnter "application/json" to pass a Request body.
branchstringEnter your branch unique ID.