Anchor to productBundleUpdateproduct
productBundleUpdate
mutation
Requires access scope. Also: The shop must have access to bundles feature.
Updates a componentized product.
Anchor to Arguments
Arguments
- Anchor to inputinput•Product
Bundle requiredUpdate Input! Input for updating a componentized product.
Was this section helpful?
Anchor to ProductBundleUpdatePayload returnsProductBundleUpdatePayload returns
- Anchor to productBundleOperationproduct•
Bundle Operation The asynchronous ProductBundleOperation updating the componentized product.
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation productBundleUpdate($input: ProductBundleUpdateInput!) {2 productBundleUpdate(input: $input) {3 productBundleOperation {4 # ProductBundleOperation fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "input": {3 "components": [4 {5 "optionSelections": [6 ""7 ],8 "productId": "gid://shopify/<objectName>/10079785100",9 "quantity": 1,10 "quantityOption": ""11 }12 ],13 "productId": "gid://shopify/<objectName>/10079785100",14 "title": "<your-title>"15 }16}
{
"input": {
"components": [
{
"optionSelections": [
""
],
"productId": "gid://shopify/<objectName>/10079785100",
"quantity": 1,
"quantityOption": ""
}
],
"productId": "gid://shopify/<objectName>/10079785100",
"title": "<your-title>"
}
}
input ProductBundleUpdateInput {
components: [ProductBundleComponentInput!]
productId: ID!
title: String
}
input ProductBundleComponentInput {
optionSelections: [ProductBundleComponentOptionSelectionInput!]!
productId: ID!
quantity: Int
quantityOption: ProductBundleComponentQuantityOptionInput
}