Batch Create Knowledge Base Data Source Links
This method allows you to link multiple data sources to a knowledge base using a single request.
For each data source in the request, the response will show you the status of the link between the data source and the knowledge base, or it will provide you with details why linking failed.
For details, refer to the method to Create a link between a data source and a knowledge base.
knowledge_base_id
Show optional properties
{
"data_source_ids": [
{}
]
}
{
"data_source_ids": [
"string"
]
}
List of data source IDs to link.
Successful Response
"LinkedDataSourceBatchCreateResponse Object"
List of data sources successfully linked to the knowledge base.
List of errors that occurred while linking data sources to the knowledge base.
The knowledge base does not support linking to a data source.
Invalid knowledge base ID.
Validation Error
"HTTPValidationError Object"
detail
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"data_source_ids":["string"]}' https://{api_host}/api/v1/control/knowledge-bases/{knowledge_base_id}/batch/data-sources/link