> ## 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.

# testWarehouseConnection

> Opens a connection with the settings without saving them. A refused connection is a `CONNECTION_TEST_FAILED` error. A `DEVELOPMENT_SHARED` connection can't be opened without a user's own credentials, so testing one is `VALIDATION_FAILED` on `scope`. Needs `connections:write`.



**mutation** `testWarehouseConnection(input: TestWarehouseConnectionInput!): TestWarehouseConnectionPayload!`

## Arguments

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

The connection.

## Returns

`TestWarehouseConnectionPayload!`

**`type`**: `WarehouseType!`

The warehouse the connection opened.

---

**`testedAt`**: `DateTime!`

When the test ran.

## Examples

```graphql Mutation
mutation TestWarehouseConnection($input: TestWarehouseConnectionInput!) {
  testWarehouseConnection(input: $input) {
    type
    testedAt
  }
}
```

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

```json Response
{
  "data": {
    "testWarehouseConnection": {
      "type": "SNOWFLAKE",
      "testedAt": "value"
    }
  }
}
```


## 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)
- [Copy a connection](https://docs.paradime.io/guides/data-warehouse-essentials/manage-connections/copy-a-connection.md)
- [Workspace and warehouse errors](https://docs.paradime.io/get-help/error-list/workspace-and-warehouse-errors.md)


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