Get Reusable Block Content via REST API?

[ad_1]

I’m trying to retrieve a Reusable Block via the REST API like so:

`GET /wp-json/wp/v2/blocks/123`

Then I get this response:

>{
“code”: “rest\_forbidden”,
“message”: “Sorry, you are not allowed to do that.”,
“data”: {
“status”: 401
}
}

I can hit other endpoints like `/posts/` just fine.

Is there a good way to retrieve content within Reusable Blocks via the REST API?

[ad_2]
2 Comments

 

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