deletePostgenIntegrationsWithHttpInfo method

Future<Response> deletePostgenIntegrationsWithHttpInfo(
  1. String companyId,
  2. String integrationId
)

Delete single integration by ID. Also deletes credentials from GCP Secret Manager.

Note: This method returns the HTTP Response.

Parameters:

  • String companyId (required): Unique identifier for the Company

  • String integrationId (required): Unique identifier for the Integration

Implementation

Future<Response> deletePostgenIntegrationsWithHttpInfo(String companyId, String integrationId,) 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;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}