# ModifyConnectionAsync Method

## Overloads

| [ModifyConnectionAsync(String, Connection, Boolean)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ModifyConnectionAsync.htm#Qlik_Engine_IApp_ModifyConnectionAsync_System_String_Qlik_Engine_Connection_System_Boolean_) |  | Updates a connection. |
| --- | --- | --- |
| [ModifyConnectionAsync(AsyncHandle, String, Connection, Boolean)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ModifyConnectionAsync.htm#Qlik_Engine_IApp_ModifyConnectionAsync_Qlik_Engine_AsyncHandle_System_String_Qlik_Engine_Connection_System_Boolean_) |  | Updates a connection. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ModifyConnectionAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ModifyConnectionAsync.htm)

## ModifyConnectionAsync(String, Connection, Boolean)

Updates a connection.

### Declaration

```

          Task ModifyConnectionAsync([QixName("qConnectionId")] string connectionId, [QixName("qConnection")] Connection connection, [QixName("qOverrideCredentials")] bool overrideCredentials = false)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | connectionId | Identifier of the connection. |
| [Connection](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.htm) | connection | Information about the connection.<br>Properties that can be updated. |
| System.Boolean | overrideCredentials | Set this parameter to true to override the user name and password. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Remarks

The identifier of a connection cannot be updated. qType cannot be modified with the ModifyConnection method.

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ModifyConnectionAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.ModifyConnectionAsync.htm)

## ModifyConnectionAsync(AsyncHandle, String, Connection, Boolean)

Updates a connection.

### Declaration

```

          Task ModifyConnectionAsync(AsyncHandle asyncHandle, [QixName("qConnectionId")] string connectionId, [QixName("qConnection")] Connection connection, [QixName("qOverrideCredentials")] bool overrideCredentials = false)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.String | connectionId | Identifier of the connection. |
| [Connection](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.htm) | connection | Information about the connection.<br>Properties that can be updated. |
| System.Boolean | overrideCredentials | Set this parameter to true to override the user name and password. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task |  |

### Remarks

The identifier of a connection cannot be updated. qType cannot be modified with the ModifyConnection method.