A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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!
There was an issue in api. Support enabled the mutation for bulk, so now it works.