Skip to main content
PATCH
/
ai-knowledge-bases
/
{kb_id}
Update AI Knowledge Base
curl --request PATCH \
  --url https://api.wacht.dev/ai-knowledge-bases/{kb_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "is_active": true
}'
{
  "id": "<string>",
  "name": "Product Documentation",
  "description": "<string>",
  "type": "vector",
  "embedding_model": "text-embedding-ada-002",
  "document_count": 150,
  "total_tokens": 450000,
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

kb_id
string
required

Body

application/json
name
string
description
string
is_active
boolean

Response

id
string
name
string
Example:
description
string
type
enum<string>
Available options:
vector,
graph,
hybrid
Example:
embedding_model
string
Example:
document_count
integer
Example:
total_tokens
integer
Example:
is_active
boolean
Example:
created_at
string<date-time>
updated_at
string<date-time>