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
Recycle Bin resource endpoint URI:
http:////_api/web/RecycleBin(recyclebinitemid)
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