docs/rest/knowledge_bases/insert.mdx
PUT /api/projects/{project_name}/knowledge_bases/{knowledge_base_name}
This API endpoint inserts data into a knowledge base using the PUT method.
None.
<RequestExample>curl -X PUT http://127.0.0.1:47334/api/projects/mindsdb/knowledge_bases/my_kb \
-H "Content-Type: application/json" \
-d '{
"knowledge_base": {
"rows": [
{
"order_id": "123",
"product": "Widget A",
"notes": "Great product, would buy again"
},
{
"order_id": "124",
"product": "Widget B",
"notes": "Poor quality"
}
],
"query": "SELECT * FROM sample_data.orders"
}
}'
200 OK