如何使用 onenote 重命名 onenote 中的部分 api

How to rename section in onenote using onenote api

我正在尝试使用 onenote API 重命名部分名称。 https://www.onenote.com/api/v1.0/notebooks/{我的笔记本id}/sections

https://developer.microsoft.com/en-us/graph/code-samples-and-sdks 其中有 PHP SDK 和示例代码 https://github.com/microsoftgraph/msgraph-sdk-php/blob/dev/tests/Functional/OnenoteTest.php

使用 Microsoft Graph API,您可以执行 PATCH https://graph.microsoft.com/v1.0/me/onenote/sections/{id} 并提供 {"displayName":"new SectionName"}

重命名笔记本类似于重命名分区。 PATCH https://graph.microsoft.com/v1.0/me/onenote/notebooks/{id} 并给出 {"displayName":"new NotebookName"}

要删除笔记本,请使用与上面相同的 url 和 DELETE 操作