Is there a way to retrieve the meta for a deleted Item (File/Folder) for Office365 OneDrive through REST API?

后端 未结 2 698
一向
一向 2021-01-14 11:09

I\'m looking for a way to retrieve the meta for a deleted item(file/folder). I\'m able to get change logs indicating that a certain action has been performed on an Item, and

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-14 11:52

    Recycle Bin resource endpoint URI:

    http:////_api/web/RecycleBin(recyclebinitemid)
    

    How to distinguish Recycle Bin items

    Recycle Bin resource exposes SP.RecycleBinItem.itemType property that returns the type of the Recycle Bin item.

    Examples

    The following query demonstrates how return File items:

    http:///_api/web/RecycleBin?$filter=(ItemType eq 1)
    

    and the the following one how to return Folder items:

    http:///_api/web/RecycleBin?$filter=(ItemType eq 5)
    

    ,where token for OneDrive For Business site has the following format:

    https://tenant-my.sharepoint.com/personal/username_tenant_onmicrosoft_com
    

提交回复
热议问题