Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Bulk error "Please pass a whitelisted mutation name"

Bulk error "Please pass a whitelisted mutation name"

ilyalit
Visitor
2 0 0

Hi, Everybody!

I need to do a bulk update of Shopify private metafields. So I'm trying to do privateMetafieldUpsert in bulk, as it described here: https://shopify.dev/api/usage/bulk-operations/imports#create-a-bulk-mutation-operation

But I'm getting the error when trying to call the bulkOperationRunMutation mutation.

 

    "data": {
        "bulkOperationRunMutation": {
            "bulkOperation": null,
            "userErrors": [
                {
                    "message": "Please pass a whitelisted mutation name",
                    "field": [
                        "mutation"
                    ]
                }
            ]
        }
    },

 

Response status 200 OK, I do it via postman.

With other mutations like productAppendImages the bulk works well.

My request is:

 

mutation {
  bulkOperationRunMutation(
    mutation: "mutation call($input: PrivateMetafieldInput!) { privateMetafieldUpsert(input: $input) { privateMetafield { id } userErrors { field message } } }",
    stagedUploadPath: "tmp/59260338359/bulk/36de8a9b-555f-4a9f-b889-a7ed1c75609f/bulk_op_vars") {
    bulkOperation {
      id
      url
      status
    }
    userErrors {
      message
      field
    }
  }
}

 

I tried different Shopify API versions, but still getting the error.

Does anybody faced the issue before?
Thanks!

Replies 2 (2)

ilyalit
Visitor
2 0 0

There was an issue in api. Support enabled the mutation for bulk, so now it works.

schpo
Tourist
6 0 1

Hi @ilyalit

 

I run into the same problem... can you explain how fixed that?