我正在尝试通过调用以下端点root
在我onedrive
的下创建一个新文件夹:
请求:
POST graph.microsoft.com/v1.0/me/drive/items/rootId/children
Content-Type: application/json
{
"name": "New Folder",
"folder": { },
"@microsoft.graph.conflictBehavior": "rename"
}
预期回应:
HTTP/1.1 201 Created
Content-Type: application/json
{
"createdBy": {
"user": {
...
获得回应:
200 OK
当我使用Postman对此端点进行呼叫时,我会在根文件夹下获得一个子列表,并且不会创建该文件夹。有什么办法解决这个问题吗?
我做错了什么吗?
请让我知道。
对所有Microsoft Graph API使用HTTPS请求
POST https://graph.microsoft.com/v1.0/me/drive/items/<rootId>/children
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句