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

# Create folder

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

## Interface description

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

HTTP method: `POST`


**HTTP method:** `POST`

#### POST request body parameters

Parameter name Comment (description)
parent_id target folder id (required) string
name file name (required) string
#### Return field description

Attribute name type description
file Object file information { id, name, …}
success boolean gets the success mark
code int returns error code 0 indicates success

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