Skip to content

createWebhook

Create a webhook.

Arguments

Argument Type Description
input (required) CreateWebhookInput! The webhook configuration to create.

Returns

CreateWebhookReply!

Sample

mutation CreateWebhook($input: CreateWebhookInput!) {
  createWebhook(input: $input)
}
{
  "input": {
    "name": "example-string",
    "providerType": "CUSTOM",
    "subscriptionSeverity": {},
    "subscriptionType": {},
    "url": "https://example.com"
  }
}
{
  "data": {
    "createWebhook": {
      "webhook": {
        "authType": "AUTH_TYPE_UNSPECIFIED",
        "createdAt": "2024-01-01T00:00:00.000Z",
        "createdBy": "example-string",
        "description": "example-string",
        "id": 0,
        "name": "example-string"
      }
    }
  }
}