PATCH
/
v1
/
database-connections
/
{databaseConnectionId}
curl --request PATCH \
  --url https://wmc.wiremockapi.cloud/v1/database-connections/{databaseConnectionId} \
  --header 'Authorization: Basic <encoded-value>' \
  --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"
    }
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

databaseConnectionId
string
required

Body

application/json
databaseConnection
object
required

Response

200
application/json
Success
databaseConnection
object
required