Actions42
- Attribute Actions
- Attribute Price Actions
- Formula Actions
- Master Option Actions
- Option Group Actions
- Range Actions
- Rule Actions
- Stock Actions
- Tag Actions
- Complete API Actions
- Get Custom Formula
- Get Master Option Combination Matrix
- Get Master Option Range
- Get Master Option Stock Configs
- Get Master Option Stock History
- Get Master Option Tag
- Get Option Group
- Product Master Options
- Add Master Option Stock Config
- Delete Master Option Stock Config
- Set Assign Options
- Set Custom Formula
- Set Master Option
- Set Master Option Attribute Price
- Set Master Option Attributes
- Set Master Option Range
- Set Master Option Stock Settings
- Set Master Option Tag
- Set Option Group
- Update Master Option Stock
Complete API → Set Assign Options
AI-generatedSummary
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.