docs/minds/rest_api/update_mind.mdx
This API endpoint updates the Mind name and/or the connected data sources using the PATCH method.
Provide a new name for the Mind.
</ParamField> <ParamField body='datasources' type='array'>Provide an updated list of data sources to be connected to the Mind. Use this endpoint to create data sources.
</ParamField>HTTP status code indicating success. 200 OK confirms the Mind was updated.
A valid API key must be passed in the Authorization header:
Authorization: Bearer MINDS_API_KEY
Generate your API key here.
The name of the Mind you want to update.
</ParamField> <RequestExample>curl --request PATCH \
--url 'https://mdb.ai/api/projects/mindsdb/minds/mind_name' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer MINDS_API_KEY' \
--data '{
"name": "mind_name_new",
"datasources": ["datasource_name"]
}'
from minds.client import Client
client = Client("MINDS_API_KEY", "https://mdb.ai/")
mind.update(
name='mind_name', # this is required
datasources=[new_datasource_config] # this will replace the existing datasources list
)
200 OK