<?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 Accessing legacy Paper docs with the API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Accessing-legacy-Paper-docs-with-the-API/m-p/518340#M25324</link>
    <description>&lt;P&gt;I'm having a lot of trouble working with legacy Paper docs with the API (using Python SDK). Some specific questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How do I get metadata for a Paper doc? I tried getting list of `doc_ids` from `paper_docs_list`, but then a subsequent call to `files_get_metadata` fails with path not found (I'm setting `path` to `id:&amp;lt;doc_id&amp;gt;` from the above call).&lt;/LI&gt;
&lt;LI&gt;How do I get metadata for a Paper folder? I'm able to see some folder info using `paper_docs_get_folder_info` but then when I pass in the `id` from response above into `files_get_metadata`, it fails&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;What I'm trying to accomplish is something like the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- iterate over all legacy Paper docs that I created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- for any that are unfiled, move them to a new "Legacy Docs" folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- for any that already belong in a folder, move that folder under the "Legacy Docs" folder&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 17:51:15 GMT</pubDate>
    <dc:creator>diwakergupta</dc:creator>
    <dc:date>2021-05-05T17:51:15Z</dc:date>
    <item>
      <title>Accessing legacy Paper docs with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Accessing-legacy-Paper-docs-with-the-API/m-p/518340#M25324</link>
      <description>&lt;P&gt;I'm having a lot of trouble working with legacy Paper docs with the API (using Python SDK). Some specific questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How do I get metadata for a Paper doc? I tried getting list of `doc_ids` from `paper_docs_list`, but then a subsequent call to `files_get_metadata` fails with path not found (I'm setting `path` to `id:&amp;lt;doc_id&amp;gt;` from the above call).&lt;/LI&gt;
&lt;LI&gt;How do I get metadata for a Paper folder? I'm able to see some folder info using `paper_docs_get_folder_info` but then when I pass in the `id` from response above into `files_get_metadata`, it fails&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;What I'm trying to accomplish is something like the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- iterate over all legacy Paper docs that I created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- for any that are unfiled, move them to a new "Legacy Docs" folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- for any that already belong in a folder, move that folder under the "Legacy Docs" folder&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 17:51:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Accessing-legacy-Paper-docs-with-the-API/m-p/518340#M25324</guid>
      <dc:creator>diwakergupta</dc:creator>
      <dc:date>2021-05-05T17:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing legacy Paper docs with the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Accessing-legacy-Paper-docs-with-the-API/m-p/518363#M25327</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1439236"&gt;@diwakergupta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;How do I get metadata for a Paper doc? I tried getting list of `doc_ids` from `paper_docs_list`, but then a subsequent call to `files_get_metadata` fails with path not found (I'm setting `path` to `id:&amp;lt;doc_id&amp;gt;` from the above call).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For any given Paper doc, you shouldn't use both legacy "paper" methods, and filesystem "files" methods. You can only access legacy docs via legacy paper methods, and only access docs in the filesystem via the files methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for a legacy paper docs (e.g., if you got the doc ID from `paper_docs_list`), you'd need to use `&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.paper_docs_download" target="_self"&gt;paper_docs_download&lt;/A&gt;` or `&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.paper_docs_download" target="_self"&gt;paper_docs_download_to_file&lt;/A&gt;` to retrieve the doc data and metadata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;How do I get metadata for a Paper folder? I'm able to see some folder info using `paper_docs_get_folder_info` but then when I pass in the `id` from response above into `files_get_metadata`, it fails&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Like above, you would only use one or the other. You should use `&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.paper_docs_get_folder_info" target="_self"&gt;paper_docs_get_folder_info&lt;/A&gt;` only for legacy Paper docs and `&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_get_metadata" target="_self"&gt;files_get_metadata&lt;/A&gt;` only for items in the Dropbox filesystem.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 15:56:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Accessing-legacy-Paper-docs-with-the-API/m-p/518363#M25327</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-05-05T15:56:16Z</dc:date>
    </item>
  </channel>
</rss>

