<?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: Create a folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235298#M12912</link>
    <description>Oh, I also see /2-beta-2/ in your URL. I'm not sure whether that's still expected to work, but you should really switch to /2/. Again, the HTTP response would tell you if that's the problem.&lt;BR /&gt;&lt;BR /&gt;Note that /create_folder has been deprecated in favor of /create_folder_v2, so I'd recommend switching to that too: &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-create_folder_v2" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-create_folder_v2&lt;/A&gt;.</description>
    <pubDate>Thu, 03 Aug 2017 12:18:55 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2017-08-03T12:18:55Z</dc:date>
    <item>
      <title>Create a folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235227#M12904</link>
      <description>&lt;P&gt;I want to create a folder as soon as the user login in the app,&lt;/P&gt;
&lt;P&gt;i tried the following function to create folder but i can see no folder is created..&lt;/P&gt;
&lt;P&gt;I am calling this function after the login..&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;CreateFolder()
  {

    let args={
    "path": "/Homework/math",
    "autorename": false
}
  
     let headers = new Headers();
    headers.append('Authorization','Bearer'+this.accessToken);
    headers.append('Dropbox-API-Arg', JSON.stringify(args));
    headers.append('Content-Type', 'application/json');
    console.log("created folder");
    return this.http.post('https://api.dropboxapi.com/2-beta-2/files/create_folder',{headers:headers});

  }
}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;dropboxlogin()
{
this.dropbox.login().then((success) =&amp;gt; {
this.navCtrl.push(DropboxloginPage);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.dropbox.CreateFolder();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.showToast("folder created");
}, (err) =&amp;gt; {
console.log(err);
});
&amp;nbsp;
}&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 May 2020 17:11:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235227#M12904</guid>
      <dc:creator>VITHIKA</dc:creator>
      <dc:date>2020-05-29T17:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create a folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235296#M12911</link>
      <description>What's the response from the server? Does the call succeed or fail? If it's failing, the response will probably tell you what's wrong.&lt;BR /&gt;&lt;BR /&gt;If I had to guess, it's `Bearer'+this.accessToken. You seem to be missing a space there... try 'Bearer '+this.accessToken instead.</description>
      <pubDate>Thu, 03 Aug 2017 12:16:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235296#M12911</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2017-08-03T12:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create a folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235298#M12912</link>
      <description>Oh, I also see /2-beta-2/ in your URL. I'm not sure whether that's still expected to work, but you should really switch to /2/. Again, the HTTP response would tell you if that's the problem.&lt;BR /&gt;&lt;BR /&gt;Note that /create_folder has been deprecated in favor of /create_folder_v2, so I'd recommend switching to that too: &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-create_folder_v2" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-create_folder_v2&lt;/A&gt;.</description>
      <pubDate>Thu, 03 Aug 2017 12:18:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235298#M12912</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2017-08-03T12:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235526#M12942</link>
      <description>&lt;P&gt;I made the changes,but still I cannot find any folder created..I am getting the toast as alert created,but when I am opening the dropbox,I cannot find the new folder created...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;CreateFolder()
  {

    let args={
    "path": "/invoice",
    "autorename": false
}
   //this.dropbox.filesCreateFolder(args);
     let headers = new Headers();
    headers.append('Authorization','Bearer '+this.accessToken);
    headers.append('Dropbox-API-Arg', JSON.stringify(args));
    headers.append('Content-Type', 'application/json');
    console.log("created folder");
    return this.http.post('https://api.dropboxapi.com/2/files/create_folder_v2',{headers:headers});

  }
}
&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&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;</description>
      <pubDate>Fri, 04 Aug 2017 18:25:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235526#M12942</guid>
      <dc:creator>VITHIKA</dc:creator>
      <dc:date>2017-08-04T18:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create a folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235529#M12943</link>
      <description>&lt;P&gt;What response are you getting from the API though? You need to check the API response to see if the call succeeded or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, another thing I notice is that you're sending your parameters in the 'Dropbox-API-Arg' header, but &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-create_folder_v2" target="_self"&gt;/2/files/create_folder_v2&lt;/A&gt;&amp;nbsp;is an &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_self"&gt;RPC style endpoint&lt;/A&gt;, so your parameters should be sent as JSON in the request body.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 18:54:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Create-a-folder/m-p/235529#M12943</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-04T18:54:59Z</dc:date>
    </item>
  </channel>
</rss>

