OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Products Image Gallery

AI-generated

Summary

Set or update a product’s image gallery in OnPrintShop, optionally asking the API to optimize images. The operation sends one setProductsImageGallery GraphQL mutation for each input item.

Inputs

  • Products ID (required) — The product ID whose gallery to change.
  • Input Mode (required) — Choose Fields to build the input in the node or JSON Object to provide the GraphQL arguments as JSON.
  • Input (required) — In Fields mode, provide the required image_arr list. Each image can include gallery ID, delete flag, corporate ID, title, image URL or large image name, option and attribute IDs, sort order, status, language, metadata, and product description image type.
  • Arguments JSON (required) — In JSON Object mode, supply the GraphQL arguments object, including the required input object with image_arr.
  • Optimizeimg — Optional integer passed to OnPrintShop to control image optimization.
  • Safe Mode — When enabled, blocks this Complete API mutation.
  • Partial Response — Choose whether to fail on errors or return partial data; partial results may include failures that should be reconciled before further writes.
  • Return Fields Mode — Return all available mutation fields or select a custom subset.
  • Return Fields — When Custom Selection is chosen, select from ID, Index, Message, and Result.

Output shape

A list of n8n items containing the mutation result.

Each result contains the selected response fields; the API response includes result and a message object with id, status, and message. GraphQL errors fail the operation unless continue-on-fail is enabled. Safe Mode blocks the mutation.

Links

Discussion