Update Knowledge Base

POSThttps://api.konpro.ai/v1/streaming/knowledge_base/{knowledge_base_id}

Modify the details of an existing knowledge base identified by its ID. You can update the name, opening message, and custom prompt to refine the AI avatar's contextual responses.

Request History

Log in to see full request history

TIMESTATUSUSER AGENT
Make a request to see history.

0 Requests This Month

cURL Request

shell
curl --request POST \
--url https://api.konpro.ai/v1/streaming/knowledge_base/<knowledge_base_id> \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{
  "name": "Updated Knowledge Base Name",
  "opening": "Hello! How can I assist you today?",
  "prompt": "You are an expert assistant with comprehensive product knowledge."
}'

Path Parameter

ParameterTypeDescription
knowledge_base_idstringUnique identifier of the knowledge base to update (required)

Request Body Parameters

FieldTypeDescription
namestringNew name for the knowledge base
openingstringUpdated opening line or introduction
promptstringRevised custom prompt for avatar responses

Response

Response Structure

Confirms successful update or provides error details if applicable.

Sample Successful Response

json
{
  "knowledge_base_id": "kb_001",
  "name": "Updated Knowledge Base Name",
  "status": "updated",
  "message": "Knowledge base updated successfully"
}

Notes

  • Requires API authentication.
  • The knowledge_base_id must exist in your account.
  • All fields in the request body are optional - only provided fields will be updated.
  • Knowledge base names must be unique within your account.
  • Refer to Error Responses for error information.

Example Usage

Shell
curl --request POST \
--url https://api.konpro.ai/v1/streaming/knowledge_base/<knowledge_base_id> \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{
  "name": "Updated Knowledge Base Name",
  "opening": "Hello! How can I assist you today?",
  "prompt": "You are an expert assistant with comprehensive product knowledge."
}'

LANGUAGE

CREDENTIALS

HEADER

RESPONSE

Examples

Choose an example:

application/json
200 - Success
400 - Bad Request