webhook_disable
Disables a webhook so it stops sending events. The webhook is kept and can be enabled again.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
data | DisableWebhookInput! | Yes |
Return Type
Mutation
mutation webhook_disable(
$data: DisableWebhookInput!
) {
webhook_disable(
data: $data
) {
request_id
complexity
webhook {
id
legacy_id
account_id
shop_name
name
url
source
enabled
health
created_at
updated_at
last_enabled_change
shared_signature_secret
}
}
}Variables
{
"data": {
"webhook_id": "V2ViaG9vazoxMjM0"
}
}Response
{
"data": {
"webhook_disable": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"webhook": {name: "Order Shipped Webhook", url: "https://example.com/webhooks/shiphero"}
}
}
}