curl --request POST \
--url https://api.example.com/v1/knowledge-bases/{knowledge_base_id}/generic_train \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"source": {
"config": {
"files": [
{
"uri": "<string>",
"name": "<string>",
"id": "<string>",
"content_type": "text/plain",
"source_type": "Document",
"source_metadata": {}
}
]
},
"source_type": "Document",
"subtype": "<string>",
"config_cls": "<unknown>",
"integration": "<string>",
"image": "",
"name": "File",
"exposed": false
}
}
'