---
title: "Rename or move a wiki folder"
method: PUT
path: "/knowledgebase/{kb_id}/wiki/folders/{folder_id}"
tags: ["Wiki"]
---

# Rename or move a wiki folder

`PUT /knowledgebase/{kb_id}/wiki/folders/{folder_id}`

Rename and/or reparent a folder; the whole subtree's paths and the affected pages' cached paths are recomputed

## Path parameters

- `kb_id` string, required
- `folder_id` string, required

## Request body

- GithubComTencentWeKnoraInternalTypesWikiFolderUpdateRequest
  - `move_parent` boolean
  - `name` string
  - `parent_id` string

## Response `200`

OK

- 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
- `404` — Not Found
- `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/:folder_id/put.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)
