How to add a Confluence Page as a child of an existing page via the REST API
Then Confluence API examples are good, but they don't mention how to specify a parent page, under which I want the newly created page must be.
Thanks to https://community.atlassian.com/t5/Confluence-questions/Updating-a-confluence-page-with-Rest-API-problem-with-ancestors/qaq-p/74667 and https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-specify-parent-page-of-new-updated-page-in-Confluence/qaq-p/488096 , this is the solution:
curl -u mihamina:my_password -X POST -H 'Content-Type: application/json'
-d '{ "type":"page",
"title":"Andrana",
"ancestors":[{"id":"61145092"}],
"space":{"key":"MVT"},
"body":{"storage":{"value":"This is a new page",
"representation":"storage"}}}' \
https://confluence.rktmb.org/rest/api/content/ | python -mjson.tool