---
title: 创建文件夹
description: POST /nd/api/file/create_folder：创建文件夹 接口说明，包含路径、方法、参数和返回信息。
slug: api-post-nd-api-file-create-folder
lang: zh
category: 文件 API
category_order: 8
order: 106
api_method: POST
api_path: /nd/api/file/create_folder
api_label: 创建文件夹
keywords:
  - API
  - 创建文件夹
  - /nd/api/file/create_folder
---

# 创建文件夹

| 属性 | 值 |
| --- | --- |
| HTTP 方法 | `POST` |
| 接口路径 | `/nd/api/file/create_folder` |
| 所属分类 | 文件 API |

## 接口说明

接口路径：`/nd/api/file/create_folder`

HTTP 方法：`POST`


**HTTP 方法：** `POST`

#### POST 请求体参数

参数名 Comment(说明)
parent_id 目标文件夹 id（必填） string
name 文件名（必填） string
#### 返回字段说明

属性名 类型 说明
file Object 文件信息 { id, name, …}
success boolean 获取成功标记
code int 返回错误码 0 表示成功

## 调用说明

- 调用前需完成 [获取 token](api-post-api-token-do.md) 或相应免登录认证，并在请求 Header 中携带 `Authorization: Bearer <access_token>`。
- 参数和返回字段如因部署版本存在差异，应以实际私有云 API 文档和联调结果为准。
- 所属分类：文件 API。
