Anchor to section titled 'undefined'

productBundleUpdate
mutation

Requires write_products access scope. Also: The shop must have access to bundles feature.

Updates a componentized product.


Input for updating a componentized product.


Was this section helpful?

The asynchronous ProductBundleOperation updating the componentized product.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation productBundleUpdate($input: ProductBundleUpdateInput!) {
  productBundleUpdate(input: $input) {
    productBundleOperation {
      # ProductBundleOperation fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "input": {
    "components": [
      {
        "optionSelections": [
          {
            "componentOptionId": "gid://shopify/<objectName>/10079785100",
            "name": "<your-name>",
            "values": [
              "<your-values>"
            ]
          }
        ],
        "productId": "gid://shopify/<objectName>/10079785100",
        "quantity": 1,
        "quantityOption": {
          "name": "<your-name>",
          "values": [
            {
              "name": "<your-name>",
              "quantity": 1
            }
          ]
        }
      }
    ],
    "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
}