Skip to main content
PATCH
/
ai
/
knowledge-bases
/
{kb_id}
Update knowledge base
curl --request PATCH \
  --url https://api.wacht.dev/ai/knowledge-bases/{kb_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "configuration": {}
}
'
{
  "id": "1234567890123456789",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "deployment_id": "9876543210987654321",
  "name": "Product Documentation",
  "description": "Knowledge base for product docs",
  "configuration": {}
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Path Parameters

kb_id
string
required

Knowledge Base ID

Body

application/json
name
string
description
string | null
configuration
object

Response

Knowledge base updated

id
string
Example:

"1234567890123456789"

created_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

deployment_id
string
Example:

"9876543210987654321"

name
string
Example:

"Product Documentation"

description
string | null
Example:

"Knowledge base for product docs"

configuration
object

Knowledge base configuration