updatePostgenIntegrationsWithHttpInfo method
Future<Response>
updatePostgenIntegrationsWithHttpInfo(
- String companyId,
- String integrationId,
- PostgenIntegrationsUpdate postgenIntegrationsUpdate
Update an existing integration by ID. Can update credentials, is_active status, etc.
Note: This method returns the HTTP Response.
Parameters:
-
String companyId (required): Unique identifier for the Company
-
String integrationId (required): Unique identifier for the Integration
-
PostgenIntegrationsUpdate postgenIntegrationsUpdate (required):
Implementation
Future<Response> updatePostgenIntegrationsWithHttpInfo(String companyId, String integrationId, PostgenIntegrationsUpdate postgenIntegrationsUpdate,) async {
// ignore: prefer_const_declarations
final path = r'/companies/{company_id}/postgen_integrations/{integration_id}'
.replaceAll('{company_id}', companyId)
.replaceAll('{integration_id}', integrationId);
// ignore: prefer_final_locals
Object? postBody = postgenIntegrationsUpdate;
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,
);
}