Update a knowledge base
PATCH /v1/knowledge-bases/{kb_id}
Update the name, description, or metadata of a knowledge base.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
kb_a1b2c3d4e5Knowledge base ID
Request Body required
Section titled “Request Body required ”object
Updated name
Example
Updated Product DocsUpdated description
Example
Updated descriptionUpdated metadata (replaces existing metadata)
object
Example
{ "team": "product"}Responses
Section titled “ Responses ”Knowledge base updated
object
object
Knowledge base ID (prefixed with kb_)
Example
kb_a1b2c3d4e5Owning account ID
Example
acc_x9y8z7w6v5Knowledge base name
Example
Product DocumentationOptional description
Example
All product docs and guidesArbitrary JSON metadata
object
Example
{ "team": "engineering", "version": 3}Number of documents in this knowledge base
Example
42Example
2026-02-10T12:00:00.000ZExample
2026-02-10T14:30:00.000ZRequest validation failed
object
object
Machine-readable error code
Example
VALIDATION_ERRORHuman-readable error message
Example
Invalid request bodyAdditional error details (e.g., validation issues)
object
Example
{ "error": { "code": "VALIDATION_ERROR", "message": "Invalid request body", "details": { "issues": [ { "path": [ "name" ], "message": "Required" } ] } }}Authentication failed or missing
object
object
Machine-readable error code
Example
VALIDATION_ERRORHuman-readable error message
Example
Invalid request bodyAdditional error details (e.g., validation issues)
object
Example
{ "error": { "code": "AUTHENTICATION_ERROR", "message": "Invalid or missing API key" }}Resource not found
object
object
Machine-readable error code
Example
VALIDATION_ERRORHuman-readable error message
Example
Invalid request bodyAdditional error details (e.g., validation issues)
object
Example
{ "error": { "code": "NOT_FOUND", "message": "KnowledgeBase not found: kb_nonexistent" }}Rate limit exceeded
object
object
Machine-readable error code
Example
VALIDATION_ERRORHuman-readable error message
Example
Invalid request bodyAdditional error details (e.g., validation issues)
object
Example
{ "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Rate limit exceeded" }}