OnPrintShop Product Builder icon

OnPrintShop Product Builder

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

Actions62

Mutation → Set Product Size

AI-generated

Summary

Creates or updates one or more product sizes in OnPrintShop. Provide size inputs as a JSON array or build them with the Fields editor; use product detailed reads to check size IDs and sort order.

Inputs

  • Safe Mode — Defaults to false. In Complete API mode, blocks mutations; in legacy actions, reduces nested response fields.
  • Input Mode — Choose JSON Array or Fields for entering sizes.
  • Inputs (JSON Object Array) (required) — In JSON Array mode, provide a ProductSizeInput array, such as [{"products_id":123,"size_title":"Large"}]. The UI default is [{}].
  • Sizes — In Fields mode, add one or more size entries. Fields include size ID, product ID, title, image URL, and additional values such as dimensions, visibility, default size, setup cost, and sort order. The image URL must be directly accessible to OnPrintShop and kept available until background processing completes.

Output shape

Not shown in the supplied source pack.

The supplied file only delegates the node description to shared domain code; it does not show the mutation implementation or its return shape.

Examples

Example 1: Create one size using the required JSON array input.

Input Mode: JSON Array; Inputs: [{"products_id":123,"size_title":"Large"}]

Links

Discussion