如何使用他们的 REST API 在 Confluence 中创建新页面作为特定父级的第一个子级?

How to create new page as first child of a specific parent in Confluence using their REST API?

使用 REST API (How to create new page in Confluence using their REST API?).

在 confluence 中自动创建新页面非常简单

然而,这会将新生成的站点添加到页面底部 hierarchy/Page 导航,如下所示:

+ Reports
    + Report for January
    + Report for February
    + Report for MARCH
    + NEWLY ADDED REPORT for APRIL

不过,最好将报告倒过来(最新的报告比旧的报告更重要,所以它应该排在第一位):

+ Reports
    + NEWLY ADDED REPORT for APRIL
    + Report for MARCH
    + Report for February
    + Report for January

当然可以移动报告 (https://community.atlassian.com/t5/Confluence-questions/In-Confluence-how-can-I-reverse-the-order-of-our-Meeting-Notes/qaq-p/385516),但我现在正在寻找一种自动化方法。所以我正在搜索以下内容之一:

好的,终于知道这是怎么回事了。如果有人遇到类似问题:

curl -X GET "https://confluenceServer/pages/movepage.action?pageId=TheIdOfThePageToMove&position=above&targetId=idOfOtherPage" -H "authorization: Basic base64encodedUsernameAndPassword" -H "x-atlassian-token: no-check"