OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Master Option Attributes

AI-generated

Summary

Create or update master option attributes in OnPrintShop, sending one or more attribute input objects in a GraphQL mutation. Use Fields to build the input rows or JSON Object to supply the mutation arguments directly; Safe Mode blocks this write when enabled.

Inputs

  • Safe Mode — Defaults to off. Enable to block mutations in Complete API.
  • Input Mode — Choose Fields to enter repeatable input rows, or JSON Object to provide the mutation arguments.
  • Inputs (required) — In Fields mode, add one or more master option attribute rows. Available fields include master option and attribute IDs, label, description, color, image, status, sort order, production details, setup cost, multiplier, weight, and delete flag.
  • Arguments JSON — In JSON Object mode, provide the GraphQL arguments as JSON. The implementation expects an inputs array of MasterOptionAttributesInput objects.
  • Partial Response — Choose whether to fail on GraphQL errors or return partial data. Partial results may include failures that need reconciliation.
  • Return Fields Mode — Return all mutation result fields or select a custom subset.
  • Return Fields — When Custom Selection is selected, choose from id, index, message, and result.

Output shape

A list of result items containing mutation status fields such as index, result, message, and id.

The mutation accepts a batch of input objects. GraphQL errors fail the operation by default; the Partial Response setting controls handling of partial results. Safe Mode blocks the write when enabled.

Links

Discussion