Actions62
- Markup Master Actions
- Master Option Range Actions
- Master Option Tag Actions
- Mutation Actions
- Assign Options
- Set Additional Option (Beta)
- Set Additional Option Attributes (Beta)
- Set Markup Master (Legacy Alias)
- Set Master Option
- Set Master Option Attribute Price
- Set Master Option Attributes
- Set Master Option Rules (Legacy Alias)
- Set Master Option Tags
- Set Option Formulas
- Set Option Group
- Set Product
- Set Product Category
- Set Product Image Gallery
- Set Product Option Rules
- Set Product Pages
- Set Product Price
- Set Product Size
- Set Product SKU (Staging)
- Set Products Attribute Price (Beta)
- Set Quantity Based Attribute Price (Beta)
- Option Formula Actions
- Option Group Actions
- Product Actions
- Product Additional Option Actions
- Product Additional Attribute Price Actions
- Quantity Based Attribute Price Actions
- Complete API Actions
- Get Custom Formula
- Get Master Option Range
- Get Master Option Tag
- Get Option Group
- Set Additional Option
- Set Additional Option Attributes
- 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 Tag
- Set Option Group
- Set Product
- Set Product Category
- Set Product Option Rules
- Set Product Pages
- Set Product Price
- Set Product Size
- Set Product SKU
- Set Products Attribute Price
- Set Products Image Gallery
- Set Quantity Based Attribute Price
Mutation → Assign Options
AI-generatedSummary
Assign options to one or multiple products in the OnPrintShop system by providing a JSON array of assignment inputs.
Inputs
- Safe Mode — Boolean flag to block mutations when using the Complete API or reduce nested response fields in legacy actions. Defaults to false.
- Inputs (JSON Object Array) (required) — A JSON array of AssignOptionsInput objects specifying product and option IDs to assign. Use a single-element array for one assignment or multiple elements for batch assignments.
Output shape
A JSON response object representing the result of the assign options mutation, with details depending on the API version and safe mode setting.
The operation validates product and option IDs; it is recommended to verify these before bulk operations. Safe Mode controls mutation blocking or reduced nested response fields depending on API mode.