Commerce
attachModifierGroup
Attach Modifier Group
Attach a modifier group to a product, or narrow it to ONE variant (e.g.
Arguments
appIdstringrequiredThe Studio app ID whose catalog to edit.choiceOverridesobject[]optionalPer-product price, availability, and default overrides.clearRequiredOverridebooleanoptionaltrue restores requiredness to the reusable group's rule.displayOrderintegeroptionalOverride the group's order on this product.excludedChoiceIdsstring[]optionalChoices this product hides without changing the shared group.groupIdstringrequiredThe modifier group ID to attach.maxSelectionsOverrideintegeroptionalNo description is declared in the tool schema.minSelectionsOverrideintegeroptionalNo description is declared in the tool schema.productIdstringrequiredThe product ID to attach it to.requiredOverridebooleanoptionalOverride group requiredness for this product.variantIdstringoptionalNarrow the group to this one variant. Omit for all variants.visibilitystringoptionalExplicit attachment exposure. Defaults hidden. customerFacing requires owner consent.
Returns
The registry does not declare a return shape.
Declared limits
displayOrder: minimum -9007199254740991displayOrder: maximum 9007199254740991maxSelectionsOverride: minimum 0maxSelectionsOverride: maximum 9007199254740991minSelectionsOverride: minimum 0minSelectionsOverride: maximum 9007199254740991
Ask for it
The Cloud routes these requests to this verb.
- put the material choices on this shirt
- gift wrap only on the premium version
Pair it with
The verbs that finish the job.