---
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` — 知识库不存在

---

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