updateOutgoingWebhookWithHttpInfo method
Future<Response>
updateOutgoingWebhookWithHttpInfo(
- String hookId,
- 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:
-
String hookId (required): outgoing Webhook GUID
-
MmUpdateOutgoingWebhookRequest mmUpdateOutgoingWebhookRequest (required): Outgoing webhook to be updated
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,
);
}