younifyd
Menu

productBundleUpdate

Updates a product bundle or componentized product.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the productBundleUpdate action (under Product).
  3. Fill in the fields below, then reference the result from later steps as {{productbundleupdate.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation ProductBundleUpdate($input: ProductBundleUpdateInput!) {
  productBundleUpdate(input: $input) {
    productBundleOperation {
      id
      product {
        availablePublicationsCount
        bodyHtml
        bundleConsolidatedOptions
        category
        combinedListing
        combinedListingRole
        compareAtPriceRange
        createdAt
        customProductType
        defaultCursor
        descriptionHtml
        descriptionPlainSummary
        featuredImage
        featuredMedia
        feedback
        giftCardSettings
        giftCardTemplateSuffix
        handle
        hasOnlyDefaultVariant
        hasOutOfStockVariants
        hasVariantsThatRequiresComponents
        id
        isGiftCard
        legacyResourceId
        mediaCount
        onlineStorePreviewUrl
        onlineStoreUrl
        priceRange
        priceRangeV2
        productCategory
        productComponentsCount
        productType
        publishedAt
        publishedOnCurrentChannel
        publishedOnCurrentPublication
        requiresSellingPlan
        resourcePublicationOnCurrentPublication
        sellingPlanGroupCount
        sellingPlanGroupsCount
        seo
        standardizedProductType
        status
        storefrontId
        tags
        templateSuffix
        title
        totalInventory
        totalVariants
        tracksInventory
        updatedAt
        variantsCount
        vendor
      }
      status
      userErrors {
        code
        field
        message
      }
    }
    userErrors {
      field
      message
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

inputobjectrequired

Input for updating a product bundle or componentized product.

productIdstringrequired
titlestring
consolidatedOptionsarray<object>2 fields
componentsarray<object>4 fields
json
{
  "input": {
    "productId": "string",
    "title": "string",
    "consolidatedOptions": [
      {
        "optionName": "string",
        "optionSelections": "string"
      }
    ],
    "components": [
      {
        "productId": "string",
        "optionSelections": "string",
        "quantity": "string",
        "quantityOption": "string"
      }
    ]
  }
}

Response

Read the result with {{productbundleupdate.response.data.data.productBundleUpdate}}. If the API returns errors, the step fails and they are at {{productbundleupdate.response.data.errors}}.

productBundleOperationobject
idstring
productobject40 fields
statusstring

One ofCREATEDACTIVECOMPLETE

userErrorsarray<object>
userErrorsarray<object>
fieldobject
messageobject

Need more? See the Shopify guide for connection setup and behaviour shared by every action.