Update content type with embedded RTE objects

PUT https://{{base_url}}/v3/content_types/{{content_type_uid}}

The Update content type with embedded RTE objects request allows you to update the schema of an existing content type that contains embedded entries and/or assets within its Rich Text Editor 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 Update 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"=>"Saby Content", "uid"=>"seba", "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_2", "content_type_UID_3", "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.