Contentful logo

Contentful Community

How can I create an entry via API that has rich text field?

Hey, I’m curious, I’m having trouble creating an entry with a rich text field via API, does someone have some documentation or library on how can I convert a WYSIWYG editor content into a rich text format? I’m trying to build a form that allows my users to suggest content that will be pushed as a draft entry into contentful.

Hi Alon,

A good starting point for Rich Text would be https://www.contentful.com/developers/docs/concepts/rich-text/

You can of course create some Rich Text document via the Contentful web app and look at the entry’s plain JSON to see how the corresponding Rich Text would look like.

Best,
Daniel