OnPrintShop Product Builder icon

OnPrintShop Product Builder

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

Actions62

Mutation → Assign Options

AI-generated

Summary

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.

Links

Discussion