OnPrintShop Master Options icon

OnPrintShop Master Options

Manage OnPrintShop master options, attributes, formulas, rules, ranges, prices, tags, groups, and stock

Complete API → Set Assign Options

AI-generated

Summary

Set assign options by sending one or more AssignOptionsInput objects to update OnPrintShop master option assignments.

Inputs

  • Inputs (required) — An array of AssignOptionsInput objects specifying master option assignment details to create, update, or delete. Provided either as form fields or raw JSON depending on Input Mode.
  • Input Mode — Choose whether to specify inputs as structured form fields or as a JSON object.
  • Partial Response — Determines whether to fail the operation on errors or return partial data containing failures.
  • Return Fields Mode — Choose to return all fields or selectively return specific fields after the operation.
  • Return Fields — If Return Fields Mode is set to custom, select which fields to return in the output among ID, Index, Message, and Result.

Output shape

a list of objects representing the results of each assign option input processed

The output is an array where each item corresponds to an input processed, containing fields such as id, index, message, and result depending on return fields selection. Errors can be returned inline if Partial Response is set to return partial data.

Examples

Example 1: Updating a list of assign options using form input

Input Mode set to 'fields' with multiple items added under Inputs detailing master_option_id, product_option_id, and other optional fields.

Example 2: Updating assign options by providing a JSON batch

Input Mode set to 'json' with Arguments JSON containing a complete array of AssignOptionsInput objects.

Links

Discussion