<?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: Error: &amp;quot;request body: id... did not match pattern&amp;quot; in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-quot-request-body-id-did-not-match-pattern-quot/m-p/712635#M31570</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1743908"&gt;@toki4004&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To get content of any file, you need to download it, not something else. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;Something more: as seems you're messing 2 different things - file and file request! File request is pseudo object representing your (or your app' user) intention to get file from somebody else, not the file itself. Getting such object means to get the pseudo object description, not any file that may be received while using this request - multiple files could be received with single request. File request has its own id with its own format that differs from file id format, of course. That where your error is coming from. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies matter.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Sep 2023 06:06:25 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2023-09-10T06:06:25Z</dc:date>
    <item>
      <title>Error: "request body: id... did not match pattern"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-quot-request-body-id-did-not-match-pattern-quot/m-p/712634#M31569</link>
      <description>&lt;P&gt;I am trying to get contents of a text file via&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://api.dropboxapi.com/2/file_requests/get&lt;/PRE&gt;
&lt;P&gt;and I get this error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Error in call to API function "file_requests/get": request body: id: 'id:Jc0ALBXAshIAAAAAAAB3tw' did not match pattern '[-_0-9a-zA-Z]+'"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Here is my relevant code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    $fields = array(
        "id" =&amp;gt; "id:Jc0ALBXAshIAAAAAAAB3tw" );

    curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode( $fields ) );
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
    curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, "POST" );
    curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Authorization: Bearer ' . $auth_token, 'Content-Type: application/json' ) );
    curl_setopt( $ch, CURLOPT_URL, 'https://api.dropboxapi.com/2/file_requests/get' );&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I got the file id from another api request, so it should exist. What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 07:31:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-quot-request-body-id-did-not-match-pattern-quot/m-p/712634#M31569</guid>
      <dc:creator>toki4004</dc:creator>
      <dc:date>2023-09-11T07:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error: "request body: id... did not match pattern"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-quot-request-body-id-did-not-match-pattern-quot/m-p/712635#M31570</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1743908"&gt;@toki4004&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To get content of any file, you need to download it, not something else. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;Something more: as seems you're messing 2 different things - file and file request! File request is pseudo object representing your (or your app' user) intention to get file from somebody else, not the file itself. Getting such object means to get the pseudo object description, not any file that may be received while using this request - multiple files could be received with single request. File request has its own id with its own format that differs from file id format, of course. That where your error is coming from. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies matter.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2023 06:06:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-quot-request-body-id-did-not-match-pattern-quot/m-p/712635#M31570</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-09-10T06:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error: "request body: id... did not match pattern"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-quot-request-body-id-did-not-match-pattern-quot/m-p/712884#M31573</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1743908"&gt;@toki4004&lt;/a&gt;&amp;nbsp;Здравко is correct; &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_requests-get" target="_blank"&gt;the /2/file_requests/get endpoint&lt;/A&gt; is for getting information about a "&lt;A href="https://help.dropbox.com/share/create-file-request" target="_blank"&gt;file request&lt;/A&gt;" not an actual file. You should use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_blank"&gt;the /2/files/download endpoint&lt;/A&gt; instead to download the contents of a file.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 15:43:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-quot-request-body-id-did-not-match-pattern-quot/m-p/712884#M31573</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-09-11T15:43:20Z</dc:date>
    </item>
  </channel>
</rss>

