updateOutgoingWebhookWithHttpInfo method

Future<Response> updateOutgoingWebhookWithHttpInfo(
  1. String hookId,
  2. MmUpdateOutgoingWebhookRequest mmUpdateOutgoingWebhookRequest
)

Update an outgoing webhook

Update 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:

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody = mmUpdateOutgoingWebhookRequest;

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

  const contentTypes = <String>['application/json'];

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