Argument 'topic' on Field 'webhookSubscriptionCreate' has an invalid value (BULK_OPERATIONS_FINISH).

Solved
danielfrancisco
New Member
1 0 0

I'm trying to subscribe to the bulk operation I created, but when I try the instructions from "https://shopify.dev/api/usage/bulk-operations/queries" I receive the error "Argument 'topic' on Field 'webhookSubscriptionCreate' has an invalid value (BULK_OPERATIONS_FINISH)."

What am doing wrong?

mutation {
  webhookSubscriptionCreate(
    topic: BULK_OPERATIONS_FINISH
    webhookSubscription: {
      format: JSON,
      callbackUrl: "https://12345.ngrok.io/"}
  ) {
    userErrors {
      field
      message
    }
    webhookSubscription {
      id
    }
  }
}

 

Thank you! 

0 Likes
L_J_K
Shopify Staff
Shopify Staff
305 41 49

This is an accepted solution.

Hey @danielfrancisco 

Sounds like you might be posting to the 2021-07 version of the API. I say that as BULK_OPERATIONS_FINISH topic is included in the RC Candidate of our 2021-10 API, and if I take your query and post again against api/2021-10/graphql.json my webhook subscription is created and I'm good to go. Let me know how that goes!

 

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!