OnPrintShop Product Builder icon

OnPrintShop Product Builder

Create and maintain OnPrintShop products, categories, prices, sizes, pages, SKUs, and master options

Actions62

Complete API → Set Master Option Attribute Price

AI-generated

Summary

Set or update master option attribute prices in the OnPrintShop Complete API by providing one or more input entries detailing attribute IDs, price values, and optional deletion flags.

Inputs

  • safeMode — Boolean to block mutations in the Complete API. Defaults to false.
  • apiInputMode (required) — Select input mode: 'fields' to input via structured UI fields or 'json' to provide raw JSON for inputs.
  • api_inputs (required) — When using 'fields' input mode, provide an array of MasterOptionAttributePriceInput items including optional fields 'attr_id' (integer), 'delete' (integer flag), and 'prices' (array of JSON price objects).
  • apiArgumentsJson (required) — When using 'json' input mode, provide the raw JSON object complying with the MasterOptionAttributePriceInput array schema.
  • apiPartialResponse — Specify behavior on partial response failures: fail entirely or accept partial data. Defaults to 'fail'.
  • apiReturnMode — Choose whether to return all fields or a custom selection of response fields. Defaults to 'all'.
  • apiReturnFields — When using custom return mode, select which response fields to include: ID, Index, Message, Result.

Output shape

a JSON object or array describing the result of the set operation on master option attribute prices, reflecting success or failure per input item.

The actual response shape varies based on 'apiReturnMode' and 'apiReturnFields' configuration. Partial failures are controlled by the 'apiPartialResponse' setting. Use 'Safe Mode' to avoid mutations during testing or validation.

Links

Discussion