Skip to main content
Anchor to webhookSubscriptionUpdate

webhookSubscriptionUpdate

mutation

Updates an existing webhook subscription's configuration, allowing you to modify endpoints, topics, filters, and other subscription settings without recreating the entire subscription. This mutation provides flexible webhook management for evolving app requirements.

For example, when migrating from HTTP endpoints to EventBridge, you can update the subscription's endpoint configuration while preserving the same topic subscriptions and filters, ensuring continuity of event delivery during infrastructure changes.

Use webhookSubscriptionUpdate to:

  • Change webhook endpoint URLs or destination types
  • Modify event filtering criteria to refine event relevance
  • Adjust field inclusion settings to optimize payload sizes
  • Configure metafield namespace access for extended data

The mutation supports comprehensive configuration changes including endpoint type switching (HTTP to Pub/Sub, for instance), topic modifications, and advanced filtering updates. The API version is inherited from the app configuration and cannot be changed per subscription.

Updates are applied atomically, ensuring that webhook delivery continues uninterrupted during configuration changes. The response includes the updated subscription fields that you request in your query, and validation errors if requested.

Learn more about updating webhook configurations.

Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your shopify.app.toml may be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.

ID!
required

The ID of the webhook subscription to update.

WebhookSubscriptionInput!
required

Specifies the input fields for a webhook subscription.


Was this section helpful?

Anchor to WebhookSubscriptionUpdatePayload returnsWebhookSubscriptionUpdatePayload returns

[UserError!]!
non-null

The list of errors that occurred from executing the mutation.

WebhookSubscription

The webhook subscription that was updated.


Was this section helpful?