curl --request PATCH \
--url https://wmc.wiremockapi.cloud/v1/database-connections/{databaseConnectionId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"databaseConnection": {
"connectionName": "My database connection",
"databaseType": "POSTGRESQL",
"host": "my-db.example.com",
"port": 5432,
"databaseName": "my-test-data",
"username": "alice",
"password": "mysecretpassword"
}
}
'{
"databaseConnection": {
"id": "abc123",
"connectionName": "My database connection",
"databaseType": "POSTGRESQL",
"host": "my-db.example.com",
"port": 5432,
"databaseName": "my-test-data",
"username": "alice",
"links": {
"self": "/v1/data-connections/abc123"
}
}
}curl --request PATCH \
--url https://wmc.wiremockapi.cloud/v1/database-connections/{databaseConnectionId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"databaseConnection": {
"connectionName": "My database connection",
"databaseType": "POSTGRESQL",
"host": "my-db.example.com",
"port": 5432,
"databaseName": "my-test-data",
"username": "alice",
"password": "mysecretpassword"
}
}
'{
"databaseConnection": {
"id": "abc123",
"connectionName": "My database connection",
"databaseType": "POSTGRESQL",
"host": "my-db.example.com",
"port": 5432,
"databaseName": "my-test-data",
"username": "alice",
"links": {
"self": "/v1/data-connections/abc123"
}
}
}Show child attributes
The name of the connection, for display purposes.
The SQL flavour of the database.
POSTGRESQL, MYSQL, SQLSERVER, ORACLE The host name or address of the database.
The port number of the database.
The name of the database.
The name of the user to connect to the database as.
The password of the user to connect to the database as. If this field is omitted, the password is unchanged.
Success
Show child attributes
The ID of the connection.
The name of the connection, for display purposes.
The SQL flavour of the database.
POSTGRESQL, MYSQL, SQLSERVER, ORACLE The host name or address of the database.
The port number of the database.
The name of the database.
The name of the user to connect to the database as.