deleteOutgoingWebhookWithHttpInfo method

Future<Response> deleteOutgoingWebhookWithHttpInfo(
  1. String hookId
)

Delete an outgoing webhook

Delete an outgoing 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): Outgoing webhook GUID

Implementation

Future<Response> deleteOutgoingWebhookWithHttpInfo(
  String hookId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/hooks/outgoing/{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,
  );
}