Ability to change homepage on Wordpress using API

Is there any way to change a site's homepage (Settings - Reading), via API? We're running a React app with a Headless WP 'backend', and I'd like to let users change the homepage of their sites though our app.

I searched but couldn't find a solution to this.

Thanks

Topic headless frontpage homepage api plugins Wordpress

Category Web


Well you can't really change the whole homepage using API. Instead you could fetch different parts like Posts, Categories and display them using the API.


It appears you can change some settings via the REST API, but it doesn't look like the Home Page is one of them. At least, it doesn't seem to appear in the REST API > Site Settings documentation.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.