> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# updateWarehouseConnection

> Tests a connection's new settings, then saves them. A connection that doesn't exist is `NOT_FOUND`. A refused connection is a `CONNECTION_TEST_FAILED` error and saves nothing. A change redeploys the workspace's Bolt schedules; a `COST` change also starts Radar's cost sync. A `DEVELOPMENT_SHARED` connection is saved without a test, and a change rewrites every user's dbt profile. Needs `connections:write`.



**mutation** `updateWarehouseConnection(input: UpdateWarehouseConnectionInput!): UpdateWarehouseConnectionPayload!`

## Arguments

**`input`**: `UpdateWarehouseConnectionInput!` (required)

The connection.

## Returns

`UpdateWarehouseConnectionPayload!`

**`warehouseConnection`**: `WarehouseConnection!`

The updated connection.

## Examples

```graphql Mutation
mutation UpdateWarehouseConnection($input: UpdateWarehouseConnectionInput!) {
  updateWarehouseConnection(input: $input) {
    warehouseConnection {
      scope
      environment {
        slug
        type
        name
        isDefault
        branch
        dbtVersion
      }
      connectionId
      type
      isDefault
      name
    }
  }
}
```

```json Variables
{
  "input": {
    "scope": "SCHEDULER",
    "adapter": {}
  }
}
```

```json Response
{
  "data": {
    "updateWarehouseConnection": {
      "warehouseConnection": {
        "scope": "SCHEDULER",
        "environment": {
          "slug": "string",
          "type": "SCHEDULER",
          "name": "string",
          "isDefault": true,
          "branch": "string",
          "dbtVersion": "string"
        },
        "connectionId": "string",
        "type": "SNOWFLAKE",
        "isDefault": true,
        "name": "string"
      }
    }
  }
}
```


## Related topics

- [Administration API: Warehouse connections](https://docs.paradime.io/developers/graphql-api/admin-api/warehouse-connections.md)
- [Admin client: warehouse connections](https://docs.paradime.io/developers/python-sdk/modules/admin/connections.md)
- [Configure a connection](https://docs.paradime.io/guides/data-warehouse-essentials/manage-connections/configure-a-connection.md)
- [Standard roles and permissions](https://docs.paradime.io/products/settings/users/roles-and-permissions.md)
- [Admin CLI](https://docs.paradime.io/developers/paradime-cli/admin-cli.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.