dots.v2.genAi.knowledge_bases.byKnowledge_base_uuId().put()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.genAi.knowledge_bases.byKnowledge_base_uuId(knowledge_base_uuId).put(body: ApiUpdateKnowledgeBaseInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiUpdateKnowledgeBaseOutput>Description
To update a knowledge base, send a PUT request to /v2/gen-ai/knowledge_bases/{uuid}.
Parameters
Path Parameters
knowledge_base_uuIdstring requiredExample:
"123e4567-e89b-12d3-a456-426614174000"Knowledge base id
Request Body
databaseIdstring optionalExample:
"12345678-1234-1234-1234-123456789012"The id of the DigitalOcean database this knowledge base will use, optional.
namestring optionalExample:
"My Knowledge Base"Knowledge base name
projectIdstring optionalExample:
"12345678-1234-1234-1234-123456789012"The id of the DigitalOcean project this knowledge base will belong to
rerankingConfigobject optionalConfiguration for cross-encoder reranking during retrieval.
Show child properties
enabledboolean optionalExample:
trueWhether reranking is enabled for retrieval
modelstring optionalExample:
"bge-reranker-v2-m3"Reranker model internal name
tagsarray of strings optionalExample:
["example string"]Tags to organize your knowledge base.
uuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Knowledge base id
Request Sample
Response Example
More Information
See /v2/gen-ai/knowledge_bases/{uuid} in the API reference for additional detail on responses, headers, parameters, and more.