<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get metadata of a deleted file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-metadata-of-a-deleted-file/m-p/328656#M19247</link>
    <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;Thank you for quick turnaround. As you suggested storing the path in DB and using the same&amp;nbsp;for doing the deletion should do since the file_id changes every time we change the revision, rename the file or move the file.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2019 06:47:54 GMT</pubDate>
    <dc:creator>mudunuru</dc:creator>
    <dc:date>2019-02-14T06:47:54Z</dc:date>
    <item>
      <title>Get metadata of a deleted file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-metadata-of-a-deleted-file/m-p/328484#M19244</link>
      <description>&lt;P&gt;Below is the scenario we need to acheive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever a file is deleted from the dropbox the same should be removed from our database as well.&lt;/P&gt;&lt;P&gt;In our database we are storing the id of the file rather than the path, so that the filename is&amp;nbsp;renamed&amp;nbsp;or file is moved we don't&amp;nbsp;miss the file link and can download the file.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;We tried&amp;nbsp;to&amp;nbsp;use the meta data and file download api to get the&amp;nbsp;ID of the file but since the file is not present&amp;nbsp;in the path&amp;nbsp;we are getting {&amp;nbsp;&lt;SPAN class="s1"&gt;".tag": "not_found" } or 402 conflict message. How to get the file id for a deleted file?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:07:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-metadata-of-a-deleted-file/m-p/328484#M19244</guid>
      <dc:creator>mudunuru</dc:creator>
      <dc:date>2019-05-29T09:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get metadata of a deleted file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-metadata-of-a-deleted-file/m-p/328490#M19245</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The Dropbox API doesn't return the file/folder ID for DeletedMetadata, but I'll pass this along as a feature request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can call &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_revisions" target="_self"&gt;/2/files/list_revisions&lt;/A&gt;&amp;nbsp;with the path from the DeletedMetadata to get the history of the file at that though, including the&amp;nbsp;file ID(s).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alternatively, you can store&lt;/SPAN&gt;&amp;nbsp;the path and id for the each last (File|Folder)Metadata you saw, so that when you get a DeletedMetadata, you can check what the last known file ID was for that path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 17:09:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-metadata-of-a-deleted-file/m-p/328490#M19245</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-13T17:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get metadata of a deleted file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-metadata-of-a-deleted-file/m-p/328656#M19247</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;Thank you for quick turnaround. As you suggested storing the path in DB and using the same&amp;nbsp;for doing the deletion should do since the file_id changes every time we change the revision, rename the file or move the file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 06:47:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-metadata-of-a-deleted-file/m-p/328656#M19247</guid>
      <dc:creator>mudunuru</dc:creator>
      <dc:date>2019-02-14T06:47:54Z</dc:date>
    </item>
  </channel>
</rss>

