# Create a folder

This API is used to create a folder in the current folder based on a folderToken.

**Notice**：This API has been upgraded to enhance its security. We recommend that you migrate to the [new version](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/create_folder) as soon as possible.

**Notice**：This API doesn't allow you to concurrently create multiple documents, and supports up to 5 queries per second (QPS) and 10,000 queries per day.

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/drive/explorer/v2/folder/:folderToken
HTTP Method | POST
Supported app types | Custom App、Store App
Required scopes<br>**The scopes required to call this API. You can call the API with any of the scopes.** | View, comment, edit, and manage all files in My Space(drive:drive)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>or<br>`user_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer u-7f1bcd13fc57d46bac21793a18e560"<br>[Learn more about how to obtain and use access_token](https://open.feishu.cn/document/ukTMukTMukTM/uMTNz4yM1MjLzUzM)
Content-Type | string | Yes | **Fixed value**: "application/json; charset=utf-8"

For more information about how to call the AccessToken in the Docs API, see  [Get started with the Docs API](https://open.feishu.cn/document/ukTMukTMukTM/uczNzUjL3czM14yN3MTN).

### Path parameters
|Parameter|Type|Required|Description|
|--|-----|--|----|
|folderToken|string|Yes|Token of the folder. For more information about how to obtain the token, see  [Overview](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/files/guide/introduction).| 

### Request body
|Parameter|Type|Required|Description|
|--|-----|--|----|
|title|string|Yes|Title of the folder| 

### Request body example
```json
{
	"title": "string"
}
```
### Response

### Response body
|Parameter|Description|
|--|--|
|url|URL of the new folder|
|revision|Version number of the new folder|
|token|Token of the new folder|

### Response body example

```json
{
	"code": 0,
	"msg": "Success",
	"data": {
		"url": "string",
    	"revision": 0,
    	"token": "string"
    }
}
```

### Error code

Error code | Description | Troubleshooting suggestions
---|---|---
91201 | FAILED | Failed to process, try again later.
91202 | PARAMERR | parameter error, check whether the parameters are correct, such as: `type`, `fileToken`, `dstFolderToken`.
91203 | NOTEXIST | Please check whether the request parameters are correct, such as: `type` and `fileToken` match.
91204 | FORBIDDEN | Check the permissions of the current account to documents and folders. Refer to [Access Process Authorization](https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/docs-overview#6d744fe3)
91205 | DELETED | The source file has been deleted, check if it still exists.
91206 | OUT_OF_LIMIT | Limit exceeded.
91207 | DUPLICATE | Duplicate record.
91208 | REVIEW | Content review failed.

For details, refer to [Server-side error codes](https://open.feishu.cn/document/ukTMukTMukTM/ugjM14COyUjL4ITN).

