OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Set Master Option

AI-generated

Summary

Create or update shared OnPrintShop master options by submitting one or more option records in a GraphQL mutation. Use master-option reads to check the existing catalog before changing it.

Inputs

  • Safe Mode — Boolean toggle, default false. The provided operation source does not read this parameter for this mutation.
  • Inputs (JSON Object Array) (required) — JSON array of MasterOptionInput objects. Supply [{...}] for one option or [{...},{...}] for a batch; each object can include fields such as master_option_id, title, description, options_type, pricing settings, status, and external_ref. Bare objects and wrapper objects are rejected.

Output shape

A list of mutation result items.

The response contains index, result, message, id, and external_ref for the setMasterOption mutation. GraphQL errors or invalid JSON/input shape raise an operation error unless Continue On Fail is enabled.

Examples

Example 1: Update or create one master option

Submit a one-element JSON array with the option fields; use master_option_id to identify an existing option or 0 as shown in the default example.

Example 2: Batch master-option changes

Submit multiple MasterOptionInput objects in the same array; the mutation result is returned as output items.

Links

Discussion