OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Set Master Option Attributes

AI-generated

Summary

Set or update master option attributes in OnPrintShop by providing an array of MasterOptionAttributesInput objects either as a JSON array or as individual fields in batch.

Inputs

  • safeMode — Boolean flag to block mutations in Complete API or reduce nested response fields in legacy actions.
  • Input Mode (required) — Select to provide inputs either as a JSON Array or as individual fields.
  • Inputs (JSON Object Array) (required) — An array of MasterOptionAttributesInput JSON objects specifying the attributes to create or update.
  • Attributes (Fields) (required) — A collection of individual attribute entries with fields like master_attribute_id, master_option_id, label, attributes_image_url, and additional optional fields to specify the master option attributes to create or update, supporting multiple entries.

Output shape

a list of result objects indicating the status for each master option attribute set or updated, including index, result, message, and id fields.

Supports batch inputs; errors are returned per item if any issues occur. Safe Mode affects mutation permissions or response size depending on API version.

Examples

Example 1: Set or update one or more master option attributes using JSON input mode

Provide a JSON array under 'Inputs (JSON Object Array)' with one or more MasterOptionAttributesInput objects describing the attributes to set or update.

Example 2: Set or update master option attributes using fields mode

Add one or more attribute sets under 'Attributes', filling required and optional fields per attribute to specify the details of the master option attributes to handle.

Links

Discussion