Menu
webhookSubscriptionUpdate
Updates a webhook subscription's configuration. Modify the endpoint URL, event filters, included fields, or metafield namespaces without recreating the subscription.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the webhookSubscriptionUpdate action (under Webhook).
- Fill in the fields below, then reference the result from later steps as
{{webhooksubscriptionupdate.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation WebhookSubscriptionUpdate($id: ID!, $webhookSubscription: WebhookSubscriptionInput!) {
webhookSubscriptionUpdate(id: $id, webhookSubscription: $webhookSubscription) {
userErrors {
field
message
}
webhookSubscription {
apiVersion {
displayName
handle
supported
}
callbackUrl
createdAt
endpoint
filter
format
id
includeFields
legacyResourceId
metafieldNamespaces
metafields {
key
namespace
}
name
topic
updatedAt
uri
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"id": "string",
"webhookSubscription": {
"format": "JSON",
"includeFields": [
"string"
],
"filter": "string",
"metafieldNamespaces": [
"string"
],
"metafields": [
{
"key": "string",
"namespace": "string"
}
],
"name": "string",
"callbackUrl": "string",
"uri": "string"
}
}
Response
Read the result with {{webhooksubscriptionupdate.response.data.data.webhookSubscriptionUpdate}}. If the API returns errors, the step fails and they are at {{webhooksubscriptionupdate.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?