OnPrintShop Product Builder icon

OnPrintShop Product Builder

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

Actions62

Complete API → Set Products Image Gallery

AI-generated

Summary

Set the image gallery for a specified OnPrintShop product by submitting a required list of gallery image items, with optional image, metadata, attribute, status, title, and sorting fields. Choose field-by-field entry or provide API arguments as JSON; the node can return all or selected response fields and can be configured to return partial data when errors occur.

Inputs

  • Products ID (required) — Integer ID of the product whose image gallery to set.
  • Input Mode (required) — Choose Fields to enter the API input and product ID separately, or JSON Object to provide the API arguments as JSON.
  • Input (required) — In Fields mode, provide the required image_arr list. Each item may include attribute_id, attribute_ids, corporate_id, delete, image_url, language, metadata, option_id, option_ids, product_desc_image_type, products_image_gallery_id, products_large_image_name, sort_order, status, and title.
  • Parameters — Optional API parameter optimizeimg (integer), available in Fields mode.
  • Arguments JSON — API arguments object used in JSON Object mode.
  • Partial Response — Choose Fail on Errors (default) or Return Partial Data when the API reports partial results; partial results may include failures.
  • Return Fields Mode — Choose All Fields (default) or Custom Selection for the returned fields.
  • Return Fields — When Custom Selection is enabled, select any of ID, Index, Message, or Result.
  • Safe Mode — Boolean setting defaulting to false. The operation is declared as writing to OnPrintShop; the available source pack does not show how Safe Mode affects this API operation.

Output shape

API response data for the gallery update.

The selected return fields can be ID, Index, Message, and Result. Partial Response may return data alongside failures; review each row before further writes. The source pack contains only the node wrapper, so exact runtime response behavior is not visible.

Links

Discussion