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

# Create material library classification

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

## Interface description

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

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
managerIds The id array type of the person in charge [usrId1,userId2]
departmentIds Classification visibility-limited department id of department (optional) Array type [departmentId1,departmentId2]
#### The return information is as follows

{"code":0, "success":true, "materialClass": {}}

## 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.
