cURL
curl --request POST \ --url https://api.chatling.ai/v2/chatbots/{chatbotId}/knowledge-base/data-sources/texts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "texts": [ "<string>" ] }'
{ "status": "success", "data": { "texts_added": 45 } }
Add new text data sources to the knowledge base.
success
error
Show properties