# Update a connection

Update a connection by using the [ModifyConnection Method](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/service-doc-modifyconnection.htm).

The identifier, the name, the connection string and the type of the connection must be provided as input parameters, even if they should not be updated.

Information noteThe identifier of a connection cannot be updated.

## Example

[](https://help.qlik.com/en-US/sense-developer/Subsystems/EngineAPI/Content/Sense_EngineAPI/CreatingAppLoadingData/ConnectToDataSources/update-connection.htm)

#### The goal is to update the name of a connection.

1. Change the name of the connection to be NewNameForConnection02. The identifier, the name, the type and the connection string of the connection are provided in input (there are mandatory parameters).

The client sends:

```
{
  "jsonrpc": "2.0",
  "id": 10,
  "method": "ModifyConnection",
  "handle": 1,
  "params": [
    "2776CAEF-9E82C687-B1F93AF3-6B077FB2-FA3269E0",
    {
      "qName": "NewNameForConnection02",
      "qConnectionString": "E:\\TFS\\Ver12.00\\dev\\QLIK-6667\\test\\Platform\\qlikviewTests\\ProtocolTester4Net\\TestData\\",
      "qType": "folder"
    }
  ]
}
```

The engine returns:

```
{
  "jsonrpc": "2.0",
  "id": 10,
  "result": {}
}
```

The name of the connection is changed to NewNameForConnection02.