<?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: Sample response for 2/sharing/get_file_metadata user do not have download permission in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sample-response-for-2-sharing-get-file-metadata-user-do-not-have/m-p/274593#M16364</link>
    <description>&lt;P&gt;I'm not sure I understand exactly which scenario you're referring to. Can you elaborate? In any case though, all of the errors that can be returned are listed in the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_file_metadata" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_file_metadata&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The actual response response would be structured JSON, e.g.:&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "error_summary": "access_error/invalid_file/...",
  "error": {
    ".tag": "access_error",
    "access_error": {
      ".tag": "invalid_file"
    }
  }
}&lt;/PRE&gt;
&lt;P&gt;Or, if you're interested in a successful result with a "false" permission returned, it would look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "access_type": {
    ".tag": "viewer"
  },
  "id": "id:Hcd4PILNenwAAAAAAAAACw",
  "name": "hello.txt",
  "owner_team": {
    "id": "dbtid:AAALfOJvW_VA8-yeLzHQ5Pug2GR15Z4t8KI",
    "name": "TEST API Tester Team"
  },
  "permissions": [
    {
      "action": {
        ".tag": "edit_contents"
      },
      "allow": false
    }
  ],
  "policy": {
    "member_policy": {
      ".tag": "anyone"
    },
    "resolved_member_policy": {
      ".tag": "anyone"
    },
    "acl_update_policy": {
      ".tag": "editors"
    },
    "shared_link_policy": {
      ".tag": "anyone"
    },
    "viewer_info_policy": {
      ".tag": "enabled"
    }
  },
  "preview_url": "https://www.dropbox.com/scl/fi/vmn6wlojv52rnm51tmb9a/hello.txt?dl=0",
  "time_invited": "2017-03-27T18:31:52Z"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 May 2018 18:59:19 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-05-01T18:59:19Z</dc:date>
    <item>
      <title>Sample response for 2/sharing/get_file_metadata user do not have download permission</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sample-response-for-2-sharing-get-file-metadata-user-do-not-have/m-p/274318#M16329</link>
      <description>&lt;P&gt;Can I have a sample response of 2/sharing/get_file_metadata&lt;/P&gt;
&lt;P&gt;where the user does not have the&amp;nbsp;"permissions" to download the file?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:13:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sample-response-for-2-sharing-get-file-metadata-user-do-not-have/m-p/274318#M16329</guid>
      <dc:creator>solitarychild</dc:creator>
      <dc:date>2019-05-29T09:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sample response for 2/sharing/get_file_metadata user do not have download permission</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sample-response-for-2-sharing-get-file-metadata-user-do-not-have/m-p/274593#M16364</link>
      <description>&lt;P&gt;I'm not sure I understand exactly which scenario you're referring to. Can you elaborate? In any case though, all of the errors that can be returned are listed in the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_file_metadata" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_file_metadata&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The actual response response would be structured JSON, e.g.:&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "error_summary": "access_error/invalid_file/...",
  "error": {
    ".tag": "access_error",
    "access_error": {
      ".tag": "invalid_file"
    }
  }
}&lt;/PRE&gt;
&lt;P&gt;Or, if you're interested in a successful result with a "false" permission returned, it would look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "access_type": {
    ".tag": "viewer"
  },
  "id": "id:Hcd4PILNenwAAAAAAAAACw",
  "name": "hello.txt",
  "owner_team": {
    "id": "dbtid:AAALfOJvW_VA8-yeLzHQ5Pug2GR15Z4t8KI",
    "name": "TEST API Tester Team"
  },
  "permissions": [
    {
      "action": {
        ".tag": "edit_contents"
      },
      "allow": false
    }
  ],
  "policy": {
    "member_policy": {
      ".tag": "anyone"
    },
    "resolved_member_policy": {
      ".tag": "anyone"
    },
    "acl_update_policy": {
      ".tag": "editors"
    },
    "shared_link_policy": {
      ".tag": "anyone"
    },
    "viewer_info_policy": {
      ".tag": "enabled"
    }
  },
  "preview_url": "https://www.dropbox.com/scl/fi/vmn6wlojv52rnm51tmb9a/hello.txt?dl=0",
  "time_invited": "2017-03-27T18:31:52Z"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 18:59:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sample-response-for-2-sharing-get-file-metadata-user-do-not-have/m-p/274593#M16364</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-01T18:59:19Z</dc:date>
    </item>
  </channel>
</rss>

