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
Master Option → Create, Update, or Delete
AI-generatedSummary
Create, update, or delete OnPrintShop master options by submitting one or more option records. Choose form fields or provide the complete input array as JSON; set an option ID to update or delete, or use 0 to create, and set Delete to Yes to remove a record.
Inputs
- Input Mode (required) — Choose Form Fields or JSON Object Array.
- Master Options (required) — In form mode, add one or more records. Each requires a Title, Option Type, and Pricing Method. Set Master Option ID to 0 to create or to an existing ID to update or delete. Set Delete to Yes to delete. Optional fields configure descriptions, status, keys, ordering, pricing and formulas, display behavior, tags, and admin extra fields.
- Master Options JSON (required) — In JSON mode, provide an array of MasterOptionInput objects, including the fields needed for each create, update, or delete. Expressions may resolve to the array.
Output shape
A list of items from the setMasterOption mutation result.
The mutation accepts the submitted records as a batch and returns result entries containing index, result, message, id, and external_ref. Invalid JSON or a non-array/non-object entry causes an error; with Continue On Fail enabled, the affected input item produces an error item.
Examples
Example 1: Create a master option
Submit a record with master_option_id 0, a title, an option type, and a pricing method; leave Delete set to No.
Example 2: Update or delete a master option
Provide the existing master_option_id and desired fields to update it, or set Delete to Yes to delete it.