---
id: "zh/api-post-nd-api-file-create-material-folder"
title: "创建子素材库"
language: "zh"
description: "POST /nd/api/file/create_material_folder：创建子素材库 接口说明，包含路径、方法、参数和返回信息。"
canonical_url: "https://www.babel.cc/public/babelwiki/zh/api-post-nd-api-file-create-material-folder.html"
markdown_url: "https://www.babel.cc/public/babelwiki/ai/zh/api-post-nd-api-file-create-material-folder.md"
alternates: {"en": "https://www.babel.cc/public/babelwiki/ai/en/api-post-nd-api-file-create-material-folder.md", "zh": "https://www.babel.cc/public/babelwiki/ai/zh/api-post-nd-api-file-create-material-folder.md"}
reading_note: "文档记录不等于当前部署能力；以实际版本、授权模块与配置为准。保留原文的可选、限制及待确认说明，勿补猜接口。 / Documentation is not a guarantee for every deployment. Preserve optional-module requirements, limitations and unresolved API contracts."
---

# 创建子素材库

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

## 接口说明




#### POST 请求体参数

| 参数 | 类型 | 说明（保留原资料的必填、默认值及范围） |
| --- | --- | --- |
| `destDirFileId` | `string` | 目标文件夹 的 fileId（必填） |
| `name` | `string` | 创建分类库的名称（必填） |
| `accessType` | `number` | 分类可见性，选填，默认 `0`；`0` 公开，`1` 需要申请，`2` 部门公开，`3` 部门申请，`4` 保密。 |
| `managerId` | `string` | 负责人的 id (选填) |
| `departmentIds` | `array` | 分类可见性-限定部门 的部门 id (选填) 数组类型 [departmentId1,departmentId2] |
| `assistantIds` | `array` | 素材库助理人员的 id （选填） 数组类型 [usrId1,userId2] |

#### 返回信息如下

```json
{"code":0, "success":true, "materialFolder": {}}
```

## 调用说明

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