Create an entry with embedded assets in RTE

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

The Create an entry with embedded RTE assets request allows you to embed assets inside the Rich Text Editor field while creating a new entry for the selected 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 an entry with embedded assets in RTE API Reference document

Request Params

KeyDatatypeRequiredDescription
locale_codestringEnter the code of the language in the which you want to create the 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"=>"sample entry", "url"=>"/sample-entry", "rich_text_editor"=>"<p>Embedded asset as display image:</p><img class=\"embedded-asset\" data-sys-asset-uid=\"blt8d49bb742bcf2c83\" type=\"asset\" sys-style-type=\"display\"></img><p>Embedded asset as downloadable image:</p><img class=\"embedded-asset\" data-sys-asset-uid=\"bltb47f1aa5ae422cd1\" type=\"asset\" sys-style-type=\"download\"></img>"}}

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.