OnPrintShop Master Options icon

OnPrintShop Master Options

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

Master Option → Create, Update, or Delete

AI-generated

Summary

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.

Links

Discussion