Create a Folder and Upload a File

Learn how to create a new folder and upload a file using the Dropbox API.

In this lesson, we’ll start another namespace called files, and we’ll explore some of its important endpoints. Most of this namespace’s endpoints require us to enable the files.content.write and permissions.

In this lesson, we’ll learn about the following two endpoint operations:

  • create_folder_v2
  • upload

Create a new folder

The /files/create_folder_v2 endpoint creates a new folder at the path specified. It uses an HTTP POST request and Bearer authorization.

Request parameters

Let’s take a look at some of the important parameters for our request, their descriptions, and their formats in the table below.

Get hands-on with 1200+ tech skills courses.