OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Set Product Size

AI-generated

Summary

Create or update product sizes in OnPrintShop by sending a ProductSizeInput array through the setProductSize GraphQL mutation. Use the JSON Array mode for one size or a batch, or build entries with the Fields mode; check product detailed reads for size IDs and sort order before updating.

Inputs

  • Safe Mode — Boolean toggle, default false. The UI describes blocking Complete API mutations; for legacy actions it retains reduced-response behavior.
  • Input Mode — Choose JSON Array (default) or Fields to provide the size inputs.
  • Inputs (JSON Object Array) (required) — In JSON Array mode, provide a JSON array of ProductSizeInput objects, such as [{...}] for one size or [{...},{...}] for a batch. Size fields can include size_id, products_id, size_title, size_image_url, dimensions, color, visibility, default size, setup cost, and sort order.
  • Sizes — In Fields mode, add one or more size entries. Each can specify Size ID, Products ID, Size Title, Size Image URL, and additional fields such as width, height, color, visibility, default size, setup cost, and sort order. The image URL must be accessible to OnPrintShop and kept available until background processing completes.

Output shape

A list of items containing the mutation response.

The response includes index, result, message, and id fields. For a batch, the mutation response is returned as a single item containing the API's batch result; GraphQL errors raise an operation error.

Links

Discussion