Actions42
- Attribute Actions
- Attribute Price Actions
- Formula Actions
- Master Option Actions
- Option Group Actions
- Range Actions
- Rule Actions
- Stock Actions
- Tag Actions
- Complete API Actions
- Get Custom Formula
- Get Master Option Combination Matrix
- Get Master Option Range
- Get Master Option Stock Configs
- Get Master Option Stock History
- Get Master Option Tag
- Get Option Group
- Product Master Options
- Add Master Option Stock Config
- Delete Master Option Stock Config
- 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 Stock Settings
- Set Master Option Tag
- Set Option Group
- Update Master Option Stock
Complete API → Set Option Group
AI-generatedSummary
Set or update an Option Group in OnPrintShop by providing group details such as ID, name, usage type, display style, option count, collapse state, and sort order.
Inputs
- Option Group ID — Numeric ID of the option group; provide to update or delete an existing group.
- Group Name (required) — Name of the option group.
- Use For — Purpose of the group: choose among Both, Export Order Group, or Presentation Group.
- Display Style — Visual display style of the group, either Default or Inline.
- Options per Row — Number of options displayed per row in the group.
- Expanded — Boolean to specify if the group UI starts expanded (true) or collapsed (false).
- Sort Order — Integer value to determine the option group's position/order among others.
- Delete — Boolean indicating whether to delete the option group.
Output shape
a single record
Returns the mutation result containing at least the fields: result, message, and id representing the operation outcome on the option group.