updateConnectionsWithHttpInfo method
Future<Response>
updateConnectionsWithHttpInfo(
- String companyId,
- String connectionId,
- ConnectionsUpdate connectionsUpdate
Update an existing connection by ID
Note: This method returns the HTTP Response.
Parameters:
-
String companyId (required): Unique identifier for the Company
-
String connectionId (required): Unique identifier for the Connection
-
ConnectionsUpdate connectionsUpdate (required):
Implementation
Future<Response> updateConnectionsWithHttpInfo(String companyId, String connectionId, ConnectionsUpdate connectionsUpdate,) async {
// ignore: prefer_const_declarations
final path = r'/companies/{company_id}/connections/{connection_id}'
.replaceAll('{company_id}', companyId)
.replaceAll('{connection_id}', connectionId);
// ignore: prefer_final_locals
Object? postBody = connectionsUpdate;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}