update

abstract fun update(    webhookId: String,     name: String,     targetUrl: String,     secret: String?,     status: String?,     handler: CompletionHandler<Webhook>)

Updates a webhook by id.

Since

1.4

Parameters

webhookId

The identifier of the webhook.

name

A user-friendly name for this webhook.

targetUrl

The URL that receives POST requests for each event.

handler

A closure to be executed once the request has finished.

secret

The Secret used to generate payload signature.

status

The status of the webhook. Use "active" to reactivate a disabled webhook.


abstract fun update(    webhookId: String,     name: String,     targetUrl: String,     handler: CompletionHandler<Webhook>)

Updates a webhook by id.

Since

0.1

Parameters

webhookId

The identifier of the webhook.

name

A user-friendly name for this webhook.

targetUrl

The URL that receives POST requests for each event.

handler

A closure to be executed once the request has finished.