Skip to content

Box API : List files inside the trashed folder #1030

@samrajcse

Description

@samrajcse

Hi ,

I am using JAVA sdk and i found there is no option to list down the files inside the trashed folder. Box API failing in below scenario,

I did a validation with REST api and same behaviour is observed.

  1. I have deleted the folder with name Sam_Test1 which has 2 document. When i hit this url, i can view the folder name. But I used the keywords available in the files inside that folder, query return zero results.

https://api.box.com/2.0/search?query=sam&trash_content=trashed_only

  1. Then, I used this api to list down all files and folders inside the trash.
    https://api.box.com/2.0/folders/trash/items
    And I got the folder name and ID. I am trying to list the files inside that folder. API is not working. I want to view the files without restoring.

https://api.box.com/2.0/folders/123648402594/trash/ - List's basic info of that folder.
https://api.box.com/2.0/folders/123648402594/trash/items - 403 forbidden error.
https://api.box.com/2.0/folders/123648402594/items- 404 error
https://api.box.com/2.0/folders/123648402594/items/trash/ - 404 error.

Can I know the api and param to list down the option to get the list of files in the trashed folder.

Metadata

Metadata

Labels

questionAdded to questions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions