How can I publish a Notion page online using the Notion API?

While it is possible to make a page public through the Notion dashboard, I am looking for a way to accomplish this using the Notion API. I could not locate any documentation on how to enable a page’s public view via the API. Is there an available method, or perhaps an undocumented approach, that allows users to share pages on the web using the API? Any guidance on this matter would be greatly appreciated.

I have experimented with the Notion API extensively and encountered the same limitation. It appears that although you can create and update pages, there is no functionality available to alter a page’s public visibility. The API currently doesn’t provide an option to publish a page on the web, unlike what is possible via the Notion dashboard. In my experience, developers waiting for this feature frequently resort to manual toggling, as there have been no announcements from Notion regarding an API update in this regard.