OnPrintShop Master Options icon

OnPrintShop Master Options

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

Attribute → Create, Update, or Delete

AI-generated

Summary

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.

Links

Discussion