我正在尝试将文件上传到共享文件夹,该文件夹已被其他用户共享,需要使用 api 添加文件,
I am trying to upload an file to a shared folder, the folder is shared by other user , need to add an file using api,
这是我试过的模式url模式
POST
https://graph.microsoft.com/v1.0/drives/{shareduserdriveid}/items/{shareduserFolderitemId},
{
"name": "Team Documents",
"remoteItem": {
"parentReference": { "driveId": "sharedusersdriveid" }
}
}
有人可以提供权限 url 和正文模式以将文件添加或上传到现有共享文件夹
您需要 POST 到子集合,因此像下面这样的 url 应该可以工作:
POST https://graph.microsoft.com/v1.0/drives/{shareduserdriveid}/items/{shareduserFolderitemId}/children
{
"name":"test.txt",
"file": {}
}
这是我试过的模式url模式
POST
https://graph.microsoft.com/v1.0/drives/{shareduserdriveid}/items/{shareduserFolderitemId},
{
"name": "Team Documents",
"remoteItem": {
"parentReference": { "driveId": "sharedusersdriveid" }
}
}
有人可以提供权限 url 和正文模式以将文件添加或上传到现有共享文件夹
您需要 POST 到子集合,因此像下面这样的 url 应该可以工作:
POST https://graph.microsoft.com/v1.0/drives/{shareduserdriveid}/items/{shareduserFolderitemId}/children
{
"name":"test.txt",
"file": {}
}