Skip to main content

createWebhookTarget

Mutation

Used to create a new webhook.

createWebhookTarget(input: WebhookTargetCreateRequestInput): WebhookTargetCreateResponse

Arguments​

ArgumentTypeDefaultDescription
inputWebhookTargetCreateRequestInputProvide the required input values here, including the name of the webhook and the actual target destination such as an HTTP URL.

Returns​

WebhookTargetCreateResponse

Example​

Request
mutation CreateWebhookTarget($input: WebhookTargetCreateRequestInput) {
createWebhookTarget(input: $input) {
target {
contentMode
enabled
eventExtensions
id
maxRetry
name
}
}
}