OnPrintShop Product Builder icon

OnPrintShop Product Builder

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

Actions62

Mutation → Set Product Image Gallery

AI-generated

Summary

Set or update the product image gallery for a specified product by providing detailed image data either as a JSON array or as individual fields.

Inputs

  • Safe Mode — Boolean flag to block mutations in Complete API or reduce nested response fields in legacy actions.
  • Products ID (required) — The numeric ID of the product to update the image gallery for.
  • Optimize Image — Numeric flag (0 or 1) indicating whether OnPrintShop should optimize images.
  • Input Mode (required) — Choose input format for image data: as a JSON array or as individual fields.
  • Input (JSON) (required) — A JSON object containing an array of image entries with properties like image IDs, titles, file names, status, order, and related attribute or option IDs. Required if Input Mode is JSON.
  • Images (required) — A collection of image entries, each with multiple fields such as image gallery ID, image URL, large image name, and other optional metadata related to attributes, options, sorting, and status. Required if Input Mode is Fields.

Output shape

a single object containing the mutation result, typically reflecting updated product image gallery data or status.

The exact output shape depends on the OnPrintShop API response; safe mode may alter the response detail by blocking mutation or reducing nested fields. The operation requires the product ID and image details; image URLs must be accessible to OnPrintShop during processing.

Links

Discussion