updateProductDefaultVariant
Update a product's default variant
This page contains
Arguments
input UpdateProductDefaultVariantInput! PREVIEW |
UpdateProductDefaultVariantInput fields
productId ID! | The product's Id |
physicalAttributes PhysicalAttributesInput PREVIEW | ProductVariant's physical attributes |
Return Fields
product Product PREVIEW | Updated product |
userErrors [UpdateProductDefaultVariantError!] PREVIEW | User Errors |
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
xxxxxxxxxx
mutation updateProductDefaultVariant($input: UpdateProductDefaultVariantInput!) {
updateProductDefaultVariant(input: $input) {
product {
id
version
vendor {
id
name
status
accessTypes
}
}
userErrors
}
}
xxxxxxxxxx
{
"input": {
"productId": 34827,
"physicalAttributes": {
"weight": {
"value": "placeholder",
"unit": "placeholder"
},
"length": {
"value": "placeholder",
"unit": "placeholder"
},
"width": {
"value": "placeholder",
"unit": "placeholder"
},
"height": {
"value": "placeholder",
"unit": "placeholder"
}
}
}
}