Delete Webhooks

Delete one or more webhooks by their IDs.

First, obtain an access token to get started here.

Delete one or more webhooks by their unique IDs. This mutation permanently removes the specified webhooks and stops sending event notifications. Use this mutation to clean up unused or obsolete webhooks. The mutation returns a boolean indicating success or failure.

Schema
type Mutation {
  """
  Mutation to delete one or more webhooks based on their unique IDs.
  """
  deleteWebhooks(
    """
    A list of IDs representing the webhooks to delete.
    """
    ids: [ID!]!
  ): Boolean!
}
Mutation
mutation DeleteWebhooks ($input: [ID!]!) {
  deleteWebhooks(ids: $input) 
}

#variables
{
  "input": [
    "webhook_2oqujQF2pRZO8BqPgT8dWkf4Swb", 
    "webhook_2oqujRtbTdX1KTA0olXvAtftGWA"
   ]
}
Response (Example)
{
  "data": {
    "deleteWebhooks": true
  }
}

Last updated