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!