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
mutation productBundleUpdate($input: ProductBundleUpdateInput!) {
productBundleUpdate(input: $input) {
productBundleOperation {
# ProductBundleOperation fields
}
userErrors {
field
message
}
}
}
Input
{
"input": {
"components": [
{
"optionSelections": [
""
],
"productId": "gid://shopify/<objectName>/10079785100",
"quantity": 1,
"quantityOption": ""
}
],
"productId": "gid://shopify/<objectName>/10079785100",
"title": "<your-title>"
}
}
{
"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
}