Hi
I’m creating or updating the products on my store over the GraphQL API. I use the productSet mutation for that. We don’t have variants. After more research I found out, that it’s not possible to update the weight on the variant, even though it belongs there. I read, that I have to use productVariantsBulkCreate but still I cannot find out how to use it. Can someone help me here? - Thanks a lot
I was trying like the following:
{
"synchronous": true,
"productSet": {
"id": "gid://shopify/Product/15061780726095",
"title": "GraphQL Marzipan 3",
"descriptionHtml": "
Leckeres Marzipan aus der GraphQL-Welt
",
],
"productOptions": [
{
"name": "Title",
"values": [
{
"name": "Default Title"
}
]
}
],
"variants": [
{
"sku": "MARZIPAN100",
"price": "11.99",
"barcode": "1234567890123",
"weight": {
"value": 0.5,
"unit": "KILOGRAMS"
},
"optionValues": [
{
"optionName": "Title",
"name": "Default Title"
}
]
}
]
}
}