OnPrintShop Product Builder icon

OnPrintShop Product Builder

Create and maintain OnPrintShop products, categories, prices, sizes, pages, SKUs, and master options

Actions62

Mutation → Set Master Option Rules (Legacy Alias)

AI-generated

Summary

Set or update master option rules for products by providing a complete ProductOptionRulesInput JSON object to define rule details such as IDs, conditions, and visibility parameters.

Inputs

  • Safe Mode — Boolean to block mutations in Complete API or reduce nested response fields in legacy actions (default false).
  • Input (JSON) (required) — Required JSON object defining the master option rule details including rule ID, name, type, option and attribute IDs for source and hide lists, parameters, conditions, and other rule-specific settings.

Output shape

a JSON object representing the created or updated master option rule, reflecting the input rule structure with confirmation of applied changes

The mutation response contains the rule data matching the input shape. Use Safe Mode to limit side effects or response size. Legacy reduced response behavior applies when Safe Mode is enabled in legacy contexts.

Examples

Example 1: Create a new master option rule to hide certain option attributes based on parameter conditions.

Set Safe Mode false (default), provide the Input JSON defining rule_id, rule_name, rule_type, hide_option_attribute_ids, custom_param, opt_textbox_conditions, and other relevant fields.

Links

Discussion