Create a content type with embedded RTE objects

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

The Create a content type with embedded RTE objects request lets you create a content type, which supports embedded objects inside its RTE field.
To configure the permissions for your application via OAuth, please include the cm.content-types.management:write scope.

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 a content type with embedded RTE objects 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 Content", "uid"=>"sample_content", "schema"=>[{"display_name"=>"Title", "uid"=>"title", "data_type"=>"text", "field_metadata"=>{"_default"=>true}, "unique"=>false, "mandatory"=>true, "multiple"=>false}, {"display_name"=>"URL", "uid"=>"url", "data_type"=>"text", "field_metadata"=>{"_default"=>true}, "unique"=>false, "multiple"=>false}, {"data_type"=>"text", "display_name"=>"Sample RTE", "uid"=>"sample_rich_text_editor", "field_metadata"=>{"allow_rich_text"=>true, "description"=>"", "multiline"=>false, "rich_text_type"=>"advanced"}, "reference_to"=>["content_type_UID_1", "content_type_UID_1", "sys_assets"], "mandatory"=>false, "unique"=>false, "non_localizable"=>false}], "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 your 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.