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.' \
--form 'knowledgeBase=<string>' \
--form knowledgeBase.items='@example-file'{
"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"
}
}This endpoint used to update the knowledge base in the Pawa AI Platform.
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.' \
--form 'knowledgeBase=<string>' \
--form knowledgeBase.items='@example-file'{
"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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The name of the knowledge base
The description of the knowledge base
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
Knowledge base updated successfully
true
"Knowledge base created successfully"
Show child attributes
21
"WCF Knowledge Base"
"kb-5d76835d-fe3e-4793-b0d6-f2e1a668eb5d"
"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"
"ACTIVE"
"2025-08-04T16:35:37.522Z"
"2025-08-04T16:35:37.522Z"