Connections
Create database connection string
Creates a new connection string for the given database.
POST
/v1/databases/{databaseId}/connectionsAuthorizationBearer <token>
OAuth2 authentication
In: header
Scope: workspace:admin, offline_access
Path Parameters
databaseId*string
Match
^(db_)?([cC][^\s-]{8,}|[a-z0-9]+)$Request Body
application/json
name*string
Response Body
application/json
application/json
application/json
curl -X POST "https://api.prisma.io/v1/databases/string/connections" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"data": {
"id": "string",
"type": "connection",
"name": "string",
"createdAt": "2019-08-24T14:15:22Z",
"connectionString": "string",
"directConnection": {
"host": "string",
"pass": "string",
"user": "string"
},
"database": {
"id": "string",
"name": "string"
},
"host": "string",
"pass": "string",
"user": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}