OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Product

AI-generated

Summary

Creates or updates one or more OnPrintShop products by sending a ProductInput array to the Complete API setProduct mutation. Provide product fields and, optionally, nested sizes and pages; use products_id to identify an existing product for an update.

Inputs

  • Safe Mode — When enabled, blocks mutations in Complete API. Leave disabled to perform this write.
  • Input Mode (required) — Choose Fields to build product inputs in the node or JSON Object to supply the mutation arguments directly.
  • Inputs (required) — In Fields mode, add one or more product entries. Each entry can include product identifiers and details such as category, titles, descriptions, visibility, SKU, and optional nested sizes and pages. admin_extra_fields accepts a JSON object or array.
  • Arguments JSON (required) — In JSON Object mode, supply the setProduct arguments as JSON. The mutation expects inputs to be an array of ProductInput objects, including for a single product.
  • Partial Response — Choose whether API partial results with failures cause the operation to fail or are returned for reconciliation.
  • Return Fields Mode — Return all mutation result fields or select a custom subset.
  • Return Fields — When Custom Selection is chosen, select fields such as result, message, ID, external reference, and per-item sizes or pages results.

Output shape

A list of items containing the mutation result for each input item.

Each result can include index, result, message, ID, external reference, and nested sizes_result and pages_result values. Custom Return Fields can limit these fields. The API may return partial results depending on Partial Response; inspect each result before subsequent writes.

Links

Discussion