OnPrintShop Master Options icon

OnPrintShop Master Options

Manage OnPrintShop master options, attributes, formulas, rules, ranges, prices, tags, groups, and stock

Complete API → Set Master Option Range

AI-generated

Summary

Set the range values for a specific master option by providing the master option ID and an array of range objects. Optionally delete all existing ranges before setting new ones.

Inputs

  • setRangeOptionId (required) — The master option ID to which the range values will be applied.
  • deleteAllRanges — Boolean flag to delete all existing ranges for the master option before setting new ranges.
  • ranges — An array of range objects defining the 'from' and 'to' values and optional delete flag for each range.

Output shape

a single object containing the result status, message, and ID of the master option range set operation

The operation returns fields: result (success indicator), message (operation details), and id (master option range ID). Only one input object can be processed per execution; partial responses are controlled by workflow settings.

Examples

Example 1: Set ranges for a master option with ID 123

Provide 'setRangeOptionId' as 123, set 'ranges' with a list of 'from_range' and 'to_range' values, optionally enable 'deleteAllRanges' to clear existing ranges first.

Links

Discussion