API - How to check if a folder is in the deleted items bin?

27307

Using the API how can I check this? If I use the /api/2/folders/folderID I can see a <location> with contents start start with "Deleted items &gt; ". Do I check this or is there a better way?

Parents
  • Ryan D'Souza. You could perhaps query the recycle bin to check if the folder you are looking for is in there?

    https://collaborate.highq.com/sitepoint/viewWikiPage.action?metaData.channelId=9&metaData.siteID=714&metaData.wikiID=31528

    GET .../files/?q="folderid={recyclebinfolderID} will give you list of files there

    Interestingly the below folder endpoint gives me a 403 unless I use v1

    3/folders/{recyclebinfolderID}/items - 403 error

    1/folders/{recyclebinfolderID}/items - list of folders in recycle bin

    Hope this helps

Reply
  • Ryan D'Souza. You could perhaps query the recycle bin to check if the folder you are looking for is in there?

    https://collaborate.highq.com/sitepoint/viewWikiPage.action?metaData.channelId=9&metaData.siteID=714&metaData.wikiID=31528

    GET .../files/?q="folderid={recyclebinfolderID} will give you list of files there

    Interestingly the below folder endpoint gives me a 403 unless I use v1

    3/folders/{recyclebinfolderID}/items - 403 error

    1/folders/{recyclebinfolderID}/items - list of folders in recycle bin

    Hope this helps

Children
No Data