Authorizations
Enter your ContactSwing JWT Bearer token.
Path Parameters
Unique knowledge base identifier from ContactSwing dashboard.
Request Body
multipart/form-data
Updated knowledge base name
URLs of documents to index
FAQ question-answer pairs
Additional uploaded files
Response
200 OK - Knowledge base updated successfully
“Request processed successfully”
Example Request
curl -X PUT 'https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/_knowledgebase/YOUR_KB_ID' \
-H 'Authorization: Bearer YOUR_JWT_TOKEN' \
-F 'name=Updated KB Name' \
-F 'files=@document.pdf' \
-F 'urls[]="https://example.com/docs.pdf"' \
-F 'faqs[]="Q: What is this?|A: Answer here"'