Below is the scenario we need to acheive.
Whenever a file is deleted from the dropbox the same should be removed from our database as well.
In our database we are storing the id of the file rather than the path, so that the filename is renamed or file is moved we don't miss the file link and can download the file.
We implemented webhooks for getting the deleted files. In the entries of deleted files {.tag = 'deleted'}, we are not getting the meta data (id of the file). So we could not map the database record with the deleted entry from the dropbox which we received by webhook implementation.
We tried to use the meta data and file download api to get the ID of the file but since the file is not present in the path we are getting { ".tag": "not_found" } or 402 conflict message. How to get the file id for a deleted file?