curl --request POST \
     --url 'https://mdb.ai/api/projects/mindsdb/minds/mind_name_new/datasources' \
     --header 'Content-Type: application/json' \
     --header 'Authorization: Bearer MINDS_API_KEY' \
     --data '{
         "name": "datasource_name",
         "check_connection": true
     }'
{
  "success": true
}

This API endpoint adds a data source to a specific Mind using the POST method.

Body

name
string
required

The name of the data source to be added to the Mind. Use this endpoint to create data sources.

check_connection
string

Set this value to true to check the connection to the data source.

Response

success
boolean
required

Indicates whether the data source was successfully added to the Mind.

Authorization

A valid API key must be passed in the Authorization header:

Authorization: Bearer MINDS_API_KEY

Generate your API key here.

Path Parameters

mind_name
string
required

The name of the Mind to which the data source will be added.

curl --request POST \
     --url 'https://mdb.ai/api/projects/mindsdb/minds/mind_name_new/datasources' \
     --header 'Content-Type: application/json' \
     --header 'Authorization: Bearer MINDS_API_KEY' \
     --data '{
         "name": "datasource_name",
         "check_connection": true
     }'
{
  "success": true
}