admin管理员组文章数量:1402923
We're currently exploring SharePoint Embedded for the first time and are building our integration using the Visual Studio Code extension.
One challenge we've run into is restoring deleted files. We delete files using this endpoint:
DELETE /drives/{driveId}/items/{itemId}
However, we can't use the me/drive/items/{item-id}/restore endpoint, as it's not applicable in the SharePoint Embedded context.
Question: How can we restore deleted files (from the recycle bin) when working with SharePoint Embedded via the Graph API? Is there an alternative endpoint or process for this?
Thanks in advance!
We're currently exploring SharePoint Embedded for the first time and are building our integration using the Visual Studio Code extension.
One challenge we've run into is restoring deleted files. We delete files using this endpoint:
DELETE /drives/{driveId}/items/{itemId}
However, we can't use the me/drive/items/{item-id}/restore endpoint, as it's not applicable in the SharePoint Embedded context.
Question: How can we restore deleted files (from the recycle bin) when working with SharePoint Embedded via the Graph API? Is there an alternative endpoint or process for this?
Thanks in advance!
Share Improve this question edited Mar 23 at 10:08 user2250152 21.3k4 gold badges43 silver badges66 bronze badges asked Mar 21 at 9:56 TheDentistTheDentist 351 silver badge8 bronze badges1 Answer
Reset to default 0The Microsoft Graph API has a resource called fileStorageContainer
which an alias for SharePoint Embedded. The fileStorageContainer expose the endpoints to list items in a recycle bin and to restore the item from the recycle bin
List items in the recycle bin
GET /v1.0/storage/fileStorage/containers/{container_id}/recycleBin/items
Restore item
POST /v1.0/storage/fileStorage/containers/{container_id}/recycleBin/items/restore
{
"ids": ["item_id"]
}
本文标签: How to Restore Deleted Files from SharePoint Embedded via Microsoft Graph APIStack Overflow
版权声明:本文标题:How to Restore Deleted Files from SharePoint Embedded via Microsoft Graph API - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744362028a2602591.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论