createWebhookTarget
Mutation
Used to create a new webhook.
createWebhookTarget(input: WebhookTargetCreateRequestInput): WebhookTargetCreateResponse
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
input | WebhookTargetCreateRequestInput | Provide the required input values here, including the name of the webhook and the actual target destination such as an HTTP URL. |
Returns
Example
Request
mutation CreateWebhookTarget($input: WebhookTargetCreateRequestInput) {
createWebhookTarget(input: $input) {
target {
contentMode
enabled
eventExtensions
id
maxRetry
name
}
}
}