The Confluence Cloud v2 REST API endpoint to create a page takes a parentId parameter to specify a parent content ID. The docs don't narrow down the parent content type, but setting a database as parent seems to fail.
How to specify a non-page content type as parent of a page, like a parent database, or a parent whiteboard, or a parent folder?
Users can manually make pages children of those non-page content types.
The API returns a 500 server error when trying to use a database as parentId of a page:
{"errors":[{"status":500,"code":"INTERNAL_SERVER_ERROR","title":"Internal Server Error","detail":null}]}(I also checked if there is a general issue with databases as parent, but setting the parentId of a database to another database succeeds. Also, setting a page as parent of a database succeeds. But database as parent of a page? Nope. Folder as the parent of a page? Nope again.)