Creates a new webhook subscription.
input
Fields required to create a webhook.
Returns WebhookCreate .
mutation ($input: WebhookCreateInput!) { webhookCreate(input: $input) { webhookErrors { field message code } webhook { name targetUrl isActive secretKey connectionString queueName id } } }
3
{ "input": { "name": "Acme", "targetUrl": "targetUrl", "events": [ "ANY_EVENTS" ], "app": "YXBwOjc5", "isActive": true, "secretKey": "secretKey", "connectionString": "connectionString", "queueName": "queueName" } }
{ "webhookCreate": { "webhookErrors": [ { "field": "string", "message": "string", "code": "GRAPHQL_ERROR" } ], "webhook": { "name": "Acme", "targetUrl": "string", "isActive": true, "secretKey": "string", "connectionString": "string", "queueName": "string", "id": "aWQ6NzA=" } } }