Class Webhook
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v1.model.Webhook
- All Implemented Interfaces:
- com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Webhook
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A webhook that can be used by dialog nodes to make programmatic calls to an external function.
 
**Note:** Currently, only a single webhook named `main_webhook` is supported.
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classWebhook.BuilderBuilder.
- 
Method SummaryModifier and Type Method Description List<WebhookHeader>headers()Gets the headers.Stringname()Gets the name.Webhook.BuildernewBuilder()New builder.Stringurl()Gets the url.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModelequals, hashCode, toString
- 
Method Details- 
newBuilderNew builder.- Returns:
- a Webhook builder
 
- 
urlGets the url.The URL for the external service or application to which you want to send HTTP POST requests. - Returns:
- the url
 
- 
nameGets the name.The name of the webhook. Currently, `main_webhook` is the only supported value. - Returns:
- the name
 
- 
headersGets the headers.An optional array of HTTP headers to pass with the HTTP request. - Returns:
- the headers
 
 
-