How to detect a File delete via search API
AnsweredIf a file is deleted in BOX, will this be captured by the Search QUERY parameters “updated_at_range”. If yes, can we retrieve the metadata of this particular file and which parameter in the metadata would signify the ‘deletion’ ?
How can the search API capture the deletion of documents as we would need to know when a document has been deleted on Box?
-
You can get a list of deleted files in your Enterprise by querying the Enterprise Events endpoint and specifying ITEM_TRASH as the value for the event_type parameter.
-
Hi Murtza,
One quick question. I see that "ITEM_TRASH" is part User Events. Will the below URL obtain the data?
https://api.box.com/2.0/events?stream_type=admin_logs&event_type=ITEM_TRASH
Please sign in to leave a comment.
Comments
3 comments