webhook_update_url

Arguments

ArgumentTypeRequiredDefaultDescription
dataUpdateUrlWebhookInput!Yes

Return Type

UpdateUrlWebhookOutput

Mutation

mutation webhook_update_url(
  $data: UpdateUrlWebhookInput!
) {
  webhook_update_url(
    data: $data
  ) {
    request_id
    complexity
    webhook {
      ...WebhookFragment
    }
  }
}

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