---
title: Create sub-library
description: POST /nd/api/file/create_material_folder: Create sub-material library interface description, including path, method, parameters and return information.
slug: api-post-nd-api-file-create-material-folder
lang: en
category: File API
category_order: 8
order: 125
api_method: POST
api_path: /nd/api/file/create_material_folder
api_label: Create sub-library
keywords:
  - API
  - Create sub-library
  - /nd/api/file/create_material_folder
---

# Create sub-material library

| Properties | Values |
| --- | --- |
| HTTP method | `POST` |
| Interface path | `/nd/api/file/create_material_folder` |
| Category | File API |

## Interface description

Interface path: `/nd/api/file/create_material_folder`

HTTP method: `POST`


**HTTP method:** `POST`

#### POST request body parameters

Parameter name Comment (description)
destDirFileId fileId of the destination folder (required) string
name The name of the created category library (required) string
accessType Classification visibility (optional) Defaults to public 0.
0: // public
1: // Need to apply
2: // Department is public
3: // Department application
4: // Confidential
managerId The id of the person in charge (optional) string
departmentIds Classification visibility-limited department id of department (optional) Array type [departmentId1,departmentId2]
assistantIds ID of the material library assistant (optional) Array type [usrId1,userId2]
#### The return information is as follows

{"code":0, "success":true, "materialFolder": {}}
## Shared file related API

## Call instructions

- Before calling, you need to complete [Get token](api-post-api-token-do.md) or the corresponding login-free authentication, and carry `Authorization: Bearer <access_token>` in the request header.
- If there are differences in parameters and return fields due to deployment versions, the actual private cloud API documents and joint debugging results should prevail.
- Category: File API.
