Skip to content

createGitWebhook

Creates a git webhook. When an event from the provided list of events occurs, the ‘query’ parameter (a GraphQL query) will be evaluated and the results will be sent to the provided URL as the body of an HTTP POST request. The list of events must include at least one event, and no duplicates.

This query is evaluated in the webhook context, such that query { webhook } may be used to access details of the event which trigged the webhook. The query may not make any mutations.

createGitWebhook(
config: GitWebhookInput!
): WebhookSubscription!