Butlr Developer Docs
  • Welcome
  • What is Butlr
  • Spatial Metrics
  • Getting Started
    • Authentication
    • Making your first query
    • Mint Client Credentials
  • Changelog
  • Asset Management
    • GraphQL API Overview
      • Sites
      • Buildings
      • Floors
      • Rooms
      • Zones
      • Hives
      • Sensors
      • Asset Tags
    • GraphQL API Introsepction
  • Historical Occupancy
    • Reporting API Overview
      • Floor Occupancy
      • Room Occupancy
      • Zone Occupancy
      • Query Occupancy by Tag
      • Traffic
      • Presence Time
      • Statistic Overview
    • FAQs
  • Real-time occupancy
    • Webhooks Overview
      • Area Detections
      • Entryway Traffic
      • Floor Occupancy
      • Room Occupancy
      • Zone Occupancy
      • Motion Detection
      • No Motion Detection
    • Manage Webhooks
      • Create Webhooks
      • Update Webhooks
      • Delete Webhooks
      • List Webhooks
  • LINKS
    • Butlr Postman Collection
    • Butlr Website
    • Status
    • Support
    • Log In
Powered by GitBook
On this page
  1. Real-time occupancy
  2. Manage Webhooks

Delete Webhooks

Delete one or more webhooks by their IDs.

PreviousUpdate WebhooksNextList Webhooks

Last updated 5 months ago

First, obtain an access token to get started .

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
  }
}

here