Update knowledge base
curl --request PATCH \
--url http://localhost:8787/api/v1/knowledge-bases/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kbKey": "<string>",
"kbName": "<string>",
"description": "<string>",
"isActive": true,
"retrievalScoreThreshold": 123,
"metadata": {}
}
'import requests
url = "http://localhost:8787/api/v1/knowledge-bases/{id}"
payload = {
"kbKey": "<string>",
"kbName": "<string>",
"description": "<string>",
"isActive": True,
"retrievalScoreThreshold": 123,
"metadata": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
kbKey: '<string>',
kbName: '<string>',
description: '<string>',
isActive: true,
retrievalScoreThreshold: 123,
metadata: {}
})
};
fetch('http://localhost:8787/api/v1/knowledge-bases/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Knowledge Bases
Update knowledge base
Update a knowledge base’s name, description, threshold or active state
PATCH
/
knowledge-bases
/
{id}
Update knowledge base
curl --request PATCH \
--url http://localhost:8787/api/v1/knowledge-bases/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kbKey": "<string>",
"kbName": "<string>",
"description": "<string>",
"isActive": true,
"retrievalScoreThreshold": 123,
"metadata": {}
}
'import requests
url = "http://localhost:8787/api/v1/knowledge-bases/{id}"
payload = {
"kbKey": "<string>",
"kbName": "<string>",
"description": "<string>",
"isActive": True,
"retrievalScoreThreshold": 123,
"metadata": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
kbKey: '<string>',
kbName: '<string>',
description: '<string>',
isActive: true,
retrievalScoreThreshold: 123,
metadata: {}
})
};
fetch('http://localhost:8787/api/v1/knowledge-bases/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Only the fields you send are changed.
Path parameters
string
required
The knowledge base ID
Body parameters
string
Tenant-unique key
string
Display name
string
What this knowledge base contains
boolean
default:"true"
Whether agents may retrieve from it
number
Cosine relevance floor for retrieval, between
0 and 1object
Arbitrary key/value data
curl -X PATCH https://api.agentic-os.com/api/v1/knowledge-bases/KB_ID \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "kbName": "Renamed KB", "retrievalScoreThreshold": 0.35 }'
requests.patch(
"https://api.agentic-os.com/api/v1/knowledge-bases/KB_ID",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"kbName": "Renamed KB", "retrievalScoreThreshold": 0.35},
)
await fetch("https://api.agentic-os.com/api/v1/knowledge-bases/KB_ID", {
method: "PATCH",
headers: {
Authorization: `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ kbName: "Renamed KB", retrievalScoreThreshold: 0.35 }),
});
⌘I

