---
title: "更新知识"
method: PUT
path: "/knowledge/{id}"
tags: ["知识管理"]
---

# 更新知识

`PUT /knowledge/{id}`

更新知识条目信息

## Path parameters

- `id` string, required

## Request body

- GithubComTencentWeKnoraInternalTypesKnowledge
  - `created_at` string — Creation time of the knowledge
  - `deleted_at` GormDeletedAt
    - `time` string
    - `valid` boolean — Valid is true if Time is not NULL
  - `description` string — Description of the knowledge
  - `embedding_model_id` string — ID of the embedding model
  - `enable_status` string — Enable status of the knowledge
  - `error_message` string — Error message of the knowledge
  - `file_hash` string — File hash of the knowledge
  - `file_name` string — File name of the knowledge
  - `file_path` string — File path of the knowledge
  - `file_size` integer — File size of the knowledge
  - `file_type` string — File type of the knowledge
  - `id` string — Unique identifier of the knowledge
  - `knowledge_base_id` string — ID of the knowledge base
  - `knowledge_base_name` string — Knowledge base name (not stored in database, populated on query)
  - `metadata` integer[] — Metadata of the knowledge
  - `parse_status` string — Parse status of the knowledge
  - `processed_at` string — Processed time of the knowledge
  - `source` string — Source of the knowledge
  - `storage_size` integer — Storage size of the knowledge
  - `summary_status` string — Summary status for async summary generation
  - `tag_id` string — Optional tag ID for categorization within a knowledge base
  - `tenant_id` integer — Tenant ID
  - `title` string — Title of the knowledge
  - `type` string — Type of the knowledge
  - `updated_at` string — Last updated time of the knowledge

## Response `200`

更新成功

- object

## Other responses

- `400` — 请求参数错误

## Changes

- **2025-12-22** `e625bcd5b8b9` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
- **2025-12-16** `edf61e68559d` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was removed from the API

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/knowledge/: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/a7ea016b0504/schema)
