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
}
用于编辑已经创建好的个人知识库,仅传入要修改的字段。
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
}
使用以下格式进行身份验证:Bearer <your api key>
知识库id
业务处理成功
The response is of type object
.