POST
/
v1
/
users
/
{userId}
/
database-connections
/
test
curl --request POST \
  --url https://wmc.wiremockapi.cloud/v1/users/{userId}/database-connections/test \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "databaseType": "POSTGRESQL",
  "host": "my-db.example.com",
  "port": 5432,
  "databaseName": "my-test-data",
  "username": "alice",
  "password": "mysecretpassword"
}'
{
  "outcome": "SUCCESS"
}

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

userId
string
required

Body

application/json

Response

200
application/json

Success

The response is of type object.