Update embedded RTE objects

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

The Update embedded RTE objects request lets you update the embedded entries or assets placed inside the Rich Text Editor field of an entry.

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 embedded RTE objects API Reference document

Request Params

KeyDatatypeRequiredDescription
locale_codestring
Enter the code of the language of which you want to update an entry.
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

{"entry"=>{"title"=>"example", "url"=>"/example", "rich_text_editor"=>"<p>Updated embedded asset to downloadable image:</p><img class=\"embedded-asset\" data-sys-asset-uid=\"blt120a5a04d91c9466\" type=\"asset\" sys-style-type=\"download\"></img><p>Updated embedded entry inline with text:</p><div class=\"embedded-entry\" data-sys-entry-uid=\"bltb6ea3a0ab9699748\" data-sys-entry-locale=\"en-us\" data-sys-content-type-uid=\"sample_content_type\" sys-style-type=\"inline\" type=\"entry\"></div>"}}

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.