---
title: "Create a wiki folder"
method: POST
path: "/knowledgebase/{kb_id}/wiki/folders"
tags: ["Wiki"]
---

# Create a wiki folder

`POST /knowledgebase/{kb_id}/wiki/folders`

Create a new (initially empty) directory node under parent_id

## Path parameters

- `kb_id` string, required

## Request body

- GithubComTencentWeKnoraInternalTypesWikiFolderCreateRequest
  - `name` string
  - `parent_id` string

## Response `201`

Created

- GithubComTencentWeKnoraInternalTypesWikiFolder
  - `created_at` string
  - `deleted_at` GormDeletedAt
    - `time` string
    - `valid` boolean — Valid is true if Time is not NULL
  - `depth` integer
  - `id` string
  - `knowledge_base_id` string
  - `name` string
  - `parent_id` string
  - `path` string
  - `sort_order` integer
  - `tenant_id` integer
  - `updated_at` string

## Other responses

- `400` — Bad Request
- `409` — Conflict

## Changes

- **2026-06-22** `d113fcd208b2` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/knowledgebase/:kb_id/wiki/folders/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/c70887fb1bf7/schema)
