OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Master Option Attribute Price

AI-generated

Summary

Sets master option attribute price for provided inputs.

Inputs

  • api_inputs (required) — Array of master option attribute price inputs; each item includes attr_id (Int), delete (Int), and prices (JSON object array).
  • safeMode — Whether to block mutations in Complete API (legacy reduced-response behavior).
  • apiInputMode — Input mode: 'fields' for structured fields or 'json' for raw JSON payload.
  • partialResponse — How to handle partial failures: 'fail' stops on errors or 'returnData' continues with partial results.
  • returnFieldsMode — Selects which fields to return: 'all' returns all, 'custom' uses selected fields.
  • returnFields — List of field names to include when returnFieldsMode is 'custom'.

Output shape

array of result objects

Each result may contain success data or error details; includes metadata like _operation and identifiers; pagination not applicable.

Examples

Example 1: Add price attribute to a master option

api_inputs: [{ attr_id: 101, delete: 0, prices: [{ value: "{"price":100}"}]}]; safeMode: false; apiInputMode: fields; returnFieldsMode: custom; returnFields: ["id","price"]

Links

Discussion