A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I cant update product image private meta field using the privateMetafieldUpsert
but it's not working.
I can update the product private metafield with no issue but can't update the product image private meta.
when I try to update the product image I'm getting an error 'he owner record does not exist' even when the id exists
example:
mutation updateMeta($input: PrivateMetafieldInput!) {
privateMetafieldUpsert(input: $input) {
privateMetafield {
namespace
key
value
value
}
}
}
//--- variables
{
"input": {
"owner": "gid://shopify/ProductImage/32540275474595",
"namespace": "bulkly",
"valueInput": {
"value": "123",
"valueType": "INTEGER"
},
"key": "watermak"
}
}
Hey @roeiwag,
I wanted to ask a few questions to get a bit more info about what you feel may be unexpected behaviour. With some additional details, I's be happy to take another look on our end and pass back any insights or suggestions moving forward.
If this is the same app that created the metafield and/or that query is successful, but you still cannot complete a successful privateMetafieldUpsert mutation - please replicate the request shared prior and log the following details to share in this thread: error code , error message, x-request-id response header value.
- Cheers.
awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog