Update variant option
Use the Update variant options mutation to update a variant for physical goods (physical product or hardware service) or to add another variant option.
EXAMPLE-- The variant option for iPhone was incorrectly spelled as Finished instead of Finish. The mutation can be used to correct the spelling.
Mutation
mutation($input: UpdateProductVariantOptionInput!){
updateProductVariantOption(input: $input) {
product {
id
variantOptions {
code
name {
locale
value
}
inputType
}
}
userErrors {
... on UserError {
__typename
message
path
}
}
}
}
Was this page helpful?
Tell us more…
Help us improve our content. Responses are anonymous.
Thanks
We appreciate your feedback!