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

The REST API endpoints can be used with MindsDB running locally at http://127.0.0.1:47334/api.

Path Parameters

databaseName
string
required

The name of the project

Body

application/json
database
object

Response

200 - application/json
name
string
engine
string

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

type
string

Type of database (data | project | system)