Commerce
setOptionRule
Set Option Rule
State a rule BETWEEN two option choices: when whenChoiceId is selected, hidesChoiceId is unavailable (e.g.
Arguments
appIdstringrequiredThe Studio app ID whose catalog to edit.hidesChoiceIdstringrequiredChoice B: unavailable while choice A is selected.productIdstringoptionalHold the rule on this one product. Omit for every product.removebooleanoptionaltrue takes the rule away. Defaults false.whenChoiceIdstringrequiredChoice A: the choice that, once selected, hides B.
Returns
The registry does not declare a return shape.
Ask for it
The Cloud routes these requests to this verb.
- when someone picks vegan, remove cream cheese frosting
- these two options can't go together
Pair it with
The verbs that finish the job.