postIntegrationsByProviderDisconnectWithHttpInfo method

Future<Response> postIntegrationsByProviderDisconnectWithHttpInfo(
  1. String provider
)

Revokes (best-effort) and forgets an org's connection: it deletes every custodied KMS secret and the connection row.

Revokes (best-effort) and forgets an org's connection: it deletes every custodied KMS secret and the connection row. Idempotent — disconnecting a provider that was never connected still returns {disconnected:true}. Symmetric with connect: an AdminOnly connector needs the caller's own-org admin bit.

Note: This method returns the HTTP Response.

Parameters:

  • String provider (required): Provider is the registry id of the connector — "slack", "github", "cloudflare". Unknown ids are 404, as are the user-plane (/v1/integrations/connectors) providers, which this surface never resolves.

Implementation

Future<Response> postIntegrationsByProviderDisconnectWithHttpInfo(String provider,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/integrations/{provider}/disconnect'
    .replaceAll('{provider}', provider);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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