PUT
/
api
/
databases
/
{databaseName}
curl --request PUT \
  --url http://127.0.0.1:47334/v1/api/api/databases/{databaseName} \
  --header 'Content-Type: application/json' \
  --data '{
  "database": {
    "engine": "<string>",
    "parameters": {
      "database": "<string>",
      "host": "<string>",
      "password": "<string>",
      "port": "<string>",
      "user": "<string>"
    }
  }
}'
{
  "engine": "<string>",
  "name": "<string>",
  "type": "<string>"
}

The REST API playground can currently only be used with MindsDB running locally at http://127.0.0.1:47334. Support for MindsDB Cloud is in progress. In the meantime, check out our SQL example for how to use the REST API with MindsDB Cloud.

Path Parameters

databaseName
string
required

The name of the project

Body

application/json
database
object

Response

200 - application/json
engine
string

Handler used to create this database (e.g. postgres)

name
string
type
string

Type of database (data | project | system)