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
Attribute → Create, Update, or Delete
AI-generatedSummary
Creates, updates, or deletes OnPrintShop master option attributes by sending an array of attribute inputs to the setMasterOptionAttributes API mutation. Choose form rows or provide the complete array as JSON; use IDs to identify existing attributes and set delete to Yes to delete an attribute.
Inputs
- Input Mode — Choose Form Fields or JSON Object Array. Defaults to Form Fields.
- Attributes (required) — In form mode, add one or more attribute rows. Each row requires Master Option ID and Label. Set Master Attribute ID to identify an existing attribute; use 0 to create. Optional fields include attribute key, description, image filename or image URL, order product status ID, hex color, default flag, sort order, status, setup cost, multiplier, weight, material thickness, production days, production description, and Delete. When using Image URL, omit Image Filename.
- Attributes JSON (required) — In JSON mode, provide an array of MasterOptionAttributesInput objects. Supports expressions that resolve to an array; each entry must be an object.
Output shape
A list of items containing the API mutation result.
The mutation returns per-input result data including index, result, message, and id. Invalid JSON, non-array input, or non-object array entries cause an error; with Continue On Fail enabled, the error is returned as an item.