Can I use the Rest API to keep the Gutenberg intact when publishing a post?

hello. I’m trying to publish a post from site A to site B using Python and the Rest API.

Both sites are using the Gutenberg editor by default, but when I publish using the Rest API, I get published in the classic editor.

As a result, things like the gallery block used in Gutenberg don’t display properly.

Is there any way to publish with the Rest API while keeping the Gutenberg blocks?

Thanks.

1 Comment
  1. Recently, I found out about gato graphql. It is a very interesting project and I enjoyed the plugin’s developer presentation at wp builds. Maybe you should check it out.

    Among many other things it can be used to synchronize content between sites. As for the blocks, they can fetch data from the graphql server.

    u/leoleoloso

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer