Skip to main content
PUT
/
api
/
v1
/
knowledge-base
/
{kb_id}
Update Knowledge Base
curl --request PUT \
  --url https://api.kollie.ai/api/v1/knowledge-base/{kb_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Update Knowledge Base

This endpoint updates an existing knowledge base.

Request

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication
Content-TypestringYesapplication/json

Path Parameters

NameTypeRequiredDescription
kb_idstringYesThe ID of the knowledge base to update

Body

{
  "name": "string",
  "description": "string"
}

Body Fields

FieldTypeRequiredDescription
namestringNoNew name for the knowledge base
descriptionstringNoNew description for the knowledge base

Response

200 OK

{
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "created_at": "string",
    "updated_at": "string",
    "organization_id": "string"
  }
}

Response Fields

FieldTypeDescription
idstringUnique identifier for the knowledge base
namestringUpdated name of the knowledge base
descriptionstringUpdated description of the knowledge base
created_atstringTimestamp when the knowledge base was created
updated_atstringTimestamp when the knowledge base was last updated
organization_idstringID of the organization that owns the knowledge base

Example

curl -X PUT 'https://api.kollie.ai/api/v1/knowledge-base/123e4567-e89b-12d3-a456-426614174000' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Updated Product Documentation",
    "description": "Updated documentation for our product features and services"
  }'

Authorizations

X-API-Key
string
header
required

Path Parameters

kb_id
string<uuid>
required

Body

application/json
name
string | null

Name of the knowledge base

Required string length: 1 - 255
description
string | null

Optional description of the knowledge base

organization_id
string<uuid> | null

Response

Successful Response