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://<sitecollection>/<site>/_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://<onedrive for business url>/_api/web/RecycleBin?$filter=(ItemType eq 1)
and the the following one how to return Folder
items:
http://<onedrive for business url>/_api/web/RecycleBin?$filter=(ItemType eq 5)
,where token <onedrive for business url>
for OneDrive For Business site has the following format:
https://tenant-my.sharepoint.com/personal/username_tenant_onmicrosoft_com
Does
http://<sitecollection>/<site>/_api/web/RecycleBin(recyclebinitemid)
work? I grabbed the structure from: SP.RecycleBinItem.restore Method (sp.js).