---
title: "置顶/取消置顶知识库"
method: PUT
path: "/knowledge-bases/{id}/pin"
tags: ["知识库"]
---

# 置顶/取消置顶知识库

`PUT /knowledge-bases/{id}/pin`

切换知识库的置顶状态

## Path parameters

- `id` string, required

## Response `200`

更新后的知识库

- object

## Other responses

- `404` — 知识库不存在

## Changes

> 62 revisions in range; 11 could not be searched.

- **2026-03-30** `08f8a25fbf1d` — 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/knowledge-bases/:id/pin/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/a5ce73ad8921/schema)
