新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

Download files in trashed directory using API

新規投稿

コメント

5件のコメント

  • Alex Novotny

    You would have to restore the folder in order to see what was inside it prior to trashing. 

    Alex, 

    Box Developer Advocate

    0
    コメントアクション Permalink
  • Harathi Thippaluru

    Hi Alex, 

    Thanks for answering.
    We deal with clients account  under eDiscovery.
    We are allowed only to read/collect client users data but we cannot take action/tamper with their data.
    If we restore a folder under trashed folder it  will be also be shown in history of that folder and we are not allowed to do that.
    We can collect files from Trash then why we cannot collect a folder files under Trash folder.
    I hope you can understand our problem and provide an API/end point for it.

    Thanks,

    0
    コメントアクション Permalink
  • Alex Novotny

    I understand. I would post the feature request on Box Pulse. Leadership uses that to drive future enhancements. Thanks!

    0
    コメントアクション Permalink
  • Sai Vamsi

    Hi Alex,

    I applied a Legal hold using API "https://api.box.com/2.0/legal_hold_policies" and then i assign a user on it using API 

    I am assining assign_to.type = User  and assign_to.id = UserId
     
    Now i want to know for above LegalHold  on how many files(count) Legal Hold is applied to and those files Total size in bytes.
    Using which API can i get this data?
     
    Thanks

    "

    0
    コメントアクション Permalink
  • Alex Novotny

    This doesn't currently exist as an API endpoint. You can request it on Pulse if you wish. 

    As a workaround with our CLI, you can download files in bulk by pointing to a CSV with the FileID’s. If you run the Legal Hold report on each of the legal holds that you have, you get an output that has the fileid’s as one of the fields. Extract that out to a CSV, reference the CSV in the CLI call and you’re good to go. You can even have the files zipped in that call as well. Here’s some information to get your going:

    1. https://developer.box.com/guides/tooling/cli/quick-start/ - We just made working with our CLI’s even easier than before, start here to learn how to use the CLI with OAuth 2.0
    2. https://github.com/box/boxcli/blob/main/docs/files.md#box-fileszip-name - If you want to download the files in a zip format, this CLI command will do that
    3. https://github.com/box/boxcli/blob/main/docs/files.md#box-filesget-id - If you want to download without the zip, this is the command for that.

    NOTE - Anything in the trash will not appear. 

    0
    コメントアクション Permalink

投稿コメントは受け付けていません。