v4
latestOpenAPI 3.1.02026-08-01207318738.7 KBConnections
Update connection
Update connection settings, including the non-secret configuration fields returned by GET, plus base role, environment user attributes, and credentials. Round-trips with GET so a connection can be managed as code. dialect cannot be changed.
Credential fields (write-only, never returned):
- passwordUnencrypted: Update password (all dialects) or service account JSON (BigQuery)
- privateKey: Add/rotate RSA keypair for Snowflake keypair authentication
- oauthClientSecretUnencrypted: Update OAuth client secret (Snowflake, Databricks)
Changing host or port is subject to the same SSH tunnel and PrivateLink restrictions as connection create: you may only point a connection at an SSH tunnel already provisioned for your organization, and a PrivateLink host must belong to your organization. Requests that violate this return 400.
Note: Credentials are encrypted at rest and never returned in API responses.
patch/api/v1/connections/{id}
Path parameters
idstring uuid required
Connection ID
Example:550e8400-e29b-41d4-a716-446655440000
Connection ID
Request body
Example request
{
"acceptsLicense": true,
"alwaysScopeViewNames": true,
"authenticationType": "snowflake-password",
"awsRoleArn": "arn:aws:iam::123456789012:role/OmniAthenaRole",
"baseRole": "QUERIER",
"database": "analytics_db",
"defaultSchema": "public",
"environmentUserAttribute": {
"attributeName": "region",
"defaultValues": [
"us-east",
"us-west"
]
},
"externalOauthAuthorizationUrl": "https://oauth.example.com/authorize",
"externalOauthTokenUrl": "https://oauth.example.com/token",
"host": "myaccount",
"hostOverride": "myaccount.snowflakecomputing.com",
"inferRelationshipsFromColumnNames": true,
"maxBillingBytes": "1000000000",
"name": "Production Snowflake",
"port": 5432,
"queryTimeoutSeconds": 900,
"queryTimezone": "NONE",
"region": "us-east-1",
"scratchSchema": "omni_scratch",
"systemTimezone": "UTC",
"username": "analytics_user",
"warehouse": "COMPUTE_WH"
}Response
Connection updated successfully
Example response
{
"message": "Updated connection default role.",
"success": true
}