deleteIncomingWebhookWithHttpInfo method

Future<Response> deleteIncomingWebhookWithHttpInfo(
  1. String hookId
)

Delete an incoming webhook

Delete an incoming webhook given the hook id. ##### Permissions manage_webhooks for system or manage_webhooks for the specific team or manage_webhooks for the channel.

Note: This method returns the HTTP Response.

Parameters:

  • String hookId (required): Incoming webhook GUID

Implementation

Future<Response> deleteIncomingWebhookWithHttpInfo(
  String hookId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/hooks/incoming/{hook_id}'.replaceAll('{hook_id}', hookId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  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,
  );
}