updateWebhook method
Future<ClientResponse<WebhookResponse, Errors> >
updateWebhook(
- String webhookId,
- WebhookRequest request
Updates the webhook with the given Id.
@param {String} webhookId The Id of the webhook to update. @param {WebhookRequest} request The request that contains all the new webhook information. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<WebhookResponse, Errors>> updateWebhook(
String webhookId, WebhookRequest request) {
return _start<WebhookResponse, Errors>()
.withUri('/api/webhook')
.withUriSegment(webhookId)
.withJSONBody(request)
.withMethod('PUT')
.withResponseHandler(
defaultResponseHandlerBuilder((d) => WebhookResponse.fromJson(d)))
.go();
}