Skip to main content
PUT
/
llm-application
/
open
/
knowledge
/
{id}
编辑知识库
curl --request PUT \
  --url https://open.bigmodel.cn/api/llm-application/open/knowledge/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "embedding_id": 123,
  "name": "<string>",
  "description": "<string>",
  "background": "<string>",
  "icon": "<string>",
  "callback_url": "<string>",
  "callback_header": {}
}'
{
  "code": 123,
  "message": "<string>",
  "timestamp": 123
}

Authorizations

Authorization
string
header
required

使用以下格式进行身份验证:Bearer <your api key>

Path Parameters

id
string
required

知识库id

Body

application/json
embedding_id
integer

知识库绑定的向量化模型ID

name
string

知识库名称

description
string

知识库描述

background
string

背景颜色,可选:blue, red, orange, purple, sky, green, yellow

icon
string

知识库图标,可选:question, book, seal, wrench, tag, horn, house

callback_url
string

回调地址(若修改向量模型,则需要重新构建知识,由客户决定是否单独配置回调)

callback_header
object

回调时header携带的k-v(若修改向量模型,则需要重新构建知识,由客户决定是否单独配置回调)

Response

业务处理成功

code
integer

响应码,200为成功

message
string

响应信息

timestamp
integer

响应时间戳

I