Skip to main content
PUT
/
store
/
knowledge-base
/
{id}
Update a knowledge base (KB)
curl --request PUT \
  --url https://api.pawa-ai.com/v1/store/knowledge-base/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'name=Pawa Knowledge Base' \
  --form 'description=This is a sample knowledge base for Pawa.'
{
  "success": true,
  "message": "Knowledge base created successfully",
  "data": {
    "id": 21,
    "name": "WCF Knowledge Base",
    "kbReferenceId": "kb-5d76835d-fe3e-4793-b0d6-f2e1a668eb5d",
    "description": "This is a knowledge base for WCF, it contains information about various concerns about Workers Compesation Fund., it is used to answer questions about WCF",
    "status": "ACTIVE",
    "createdAt": "2025-08-04T16:35:37.522Z",
    "updatedAt": "2025-08-04T16:35:37.522Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
number
required

Body

multipart/form-data
name
string
default:Pawa Knowledge Base
required

The name of the knowledge base

description
string
default:This is a sample knowledge base for Pawa.
required

The description of the knowledge base

knowledgeBase
file[]

One or more files to create a Knowledge Base (PDF, DOCX, TXT, audio, EXCELL, PPT, Html images). NOTE: HERE ON THE DOC WE SUPPORT ONE FILE AT A TIME BUT IN REAL REQUEST PLEASE SEND MULTIPLE FILES AS LIST OF FILES

Response

Knowledge base updated successfully

success
boolean
required
Example:

true

message
string
required
Example:

"Knowledge base created successfully"

data
object
required
I