OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Set Product

AI-generated

Summary

Create or update products in OnPrintShop by sending a ProductInput array. Include only fields the workflow owns; supply an existing products_id to update a product, and OnPrintShop determines creation behavior for the provided input.

Inputs

  • Safe Mode — Boolean toggle. For this Complete API mutation, enabling Safe Mode blocks the mutation.
  • Input Mode — Choose JSON Array to supply ProductInput objects directly, or Fields to build multiple products from the form.
  • Inputs (JSON Object Array) (required) — A JSON array of product objects, including for a single product. Inputs can include product fields such as category, titles, descriptions, visibility, SKU, sizes, and pages. Use products_id when updating an existing product; creation behavior depends on OnPrintShop's input rules.
  • Products — In Fields mode, add one or more products and set their ID, title, image URLs, and optional additional fields, including JSON sizes and pages. Image URLs must be directly accessible to OnPrintShop and remain available while background processing completes.

Output shape

A list of items, typically one mutation result object containing an entry per input product.

Each result entry includes index, result, message, and id, plus external_ref, sizes_result, and pages_result. GraphQL errors or invalid JSON / non-array inputs raise an operation error.

Links

Discussion