Actions62
- Markup Master Actions
- Master Option Range Actions
- Master Option Tag Actions
- Mutation Actions
- Assign Options
- Set Additional Option (Beta)
- Set Additional Option Attributes (Beta)
- Set Markup Master (Legacy Alias)
- Set Master Option
- Set Master Option Attribute Price
- Set Master Option Attributes
- Set Master Option Rules (Legacy Alias)
- Set Master Option Tags
- Set Option Formulas
- Set Option Group
- Set Product
- Set Product Category
- Set Product Image Gallery
- Set Product Option Rules
- Set Product Pages
- Set Product Price
- Set Product Size
- Set Product SKU (Staging)
- Set Products Attribute Price (Beta)
- Set Quantity Based Attribute Price (Beta)
- Option Formula Actions
- Option Group Actions
- Product Actions
- Product Additional Option Actions
- Product Additional Attribute Price Actions
- Quantity Based Attribute Price Actions
- Complete API Actions
- Get Custom Formula
- Get Master Option Range
- Get Master Option Tag
- Get Option Group
- Set Additional Option
- Set Additional Option Attributes
- Set Assign Options
- Set Custom Formula
- Set Master Option
- Set Master Option Attribute Price
- Set Master Option Attributes
- Set Master Option Range
- Set Master Option Tag
- Set Option Group
- Set Product
- Set Product Category
- Set Product Option Rules
- Set Product Pages
- Set Product Price
- Set Product Size
- Set Product SKU
- Set Products Attribute Price
- Set Products Image Gallery
- Set Quantity Based Attribute Price
Mutation → Set Product Option Rules
AI-generatedSummary
Set or update product option rules on the OnPrintShop product builder by providing a detailed JSON input that defines rule properties and conditions.
Inputs
- Safe Mode — Boolean flag to block mutations in Complete API or reduce nested response fields in legacy actions; defaults to false.
- Input (JSON) (required) — A JSON object representing the product option rule to create or update, including fields like rule ID, name, type, source options, hide options, status, parameters, conditions, and disabling flags.
Output shape
a JSON response confirming the creation or update of the product option rule, mirroring the structure of the input rule object with status information
Requires providing a full ProductOptionRulesInput JSON object; safe mode influences mutation execution and response detail; the operation reads existing rules to maintain clear rule ownership.
Examples
Example 1: Create or update a product option rule controlling visibility of options based on specific parameter conditions using a structured JSON input.
The JSON input must include keys such as rule_id, rule_name, rule_type, condition, and optional arrays for conditions like opt_textbox_conditions to specify how options are controlled.