update_webhook_subscription
Update a web hook subscription for an organization.
Input fields
Url)
The URL to which events should be sent via HTTP POST.
[WebhookEventType!])
A list of the event types to which you wish to subscribe. If provided it replaces the current list.
ID!)
Webhook Subscription ID (read only).
Return fields
Url!)
The URL to which the system should send events via HTTP POST.
[WebhookEventType!]!)
A list of the event types the system should send to the registered HTTP endpoint.
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. |
ID!)
A system-generated key identifying a specific instance of a webhook subscription.
Examples
Update a webhook subscription.
Updates a webhook subscription. You can update one or both of the event type list and callback URL. If you don't provide either the server will return an error.
Try this example in GraphiQLmutation UpdateWebhookSubscription {
update_webhook_subscription(sentera_id: "b6i0chc_WS_w3njAcmeGrand_CV_deve_85c3a6365_220131_132709", callback_url: "https://example.com/webhooks/v2") {
sentera_id
event_types
callback_url
}
}
{
"data": {
"update_webhook_subscription": {
"sentera_id": "b6i0chc_WS_w3njAcmeGrand_CV_deve_85c3a6365_220131_132709",
"event_types": [
"FEATURE_SET_CREATED"
],
"callback_url": "https://example.com/webhooks/v2"
}
}
}