webhook_update_url
Changes the URL a webhook sends events to.
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
data | UpdateUrlWebhookInput! | Yes |
Return Type
Mutation
mutation webhook_update_url(
$data: UpdateUrlWebhookInput!
) {
webhook_update_url(
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",
"new_url": "https://example.com/resource"
}
}Response
{
"data": {
"webhook_update_url": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"webhook": {name: "Order Shipped Webhook", url: "https://example.com/webhooks/shiphero"}
}
}
}