delete_webhook_subscriptions

Delete one or more web hook subscriptions for an organization.

Input fields

organization_sentera_id (ID!)

The Sentera ID of the organization to which the requested webhooks belong.

sentera_ids ([ID!]!)

Sentera IDs of the webhook subscriptions to delete. Limited to a maximum of 100 IDs.

Return fields

callback_url (Url!)

The URL to which the system should send events via HTTP POST.

event_types ([WebhookEventType!]!)

A list of the event types the system should send to the registered HTTP endpoint.

events (WebhookEventsQueryResult!)

A list of events for this webhook subscription.

Argument Type Description
date_range DateRange

Optional parameter to filter results to events created within a specific date range.

event_type WebhookEventType

Optional parameter to filter results to a specific type of event.

pagination Pagination!

Required pagination information.

status WebhookEventStatus

Optional parameter to filter results to events in a specific status.

sentera_id (ID!)

A system-generated key identifying a specific instance of a webhook subscription.

Examples

Delete a webhook subscription.

Deletes a webhooks subscription. It is possible to delete more than one subscription in a single call if additional IDs are provided.

Try this example in GraphiQL
mutation DeleteWebhookSubscription {
  delete_webhook_subscriptions(organization_sentera_id: "6aeagny_OR_w3njAcmeGrand_CV_deve_ef64a0fce_220112_111024", sentera_ids: ["b6i0chc_WS_w3njAcmeGrand_CV_deve_85c3a6365_220131_132709"]) {
  sentera_id
  }
}

{
  "data": {
  "delete_webhook_subscriptions": [
    {
      "sentera_id": "b6i0chc_WS_w3njAcmeGrand_CV_deve_85c3a6365_220131_132709"
    }
  ]
  }
}