OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Update Order Product Images

AI-generated

Summary

Updates the images associated with an OnPrintShop order product by sending a SetOrderProductImageInput object to the setOrderProductImage GraphQL mutation. Provide the order product ID and an imagefiles array describing the image files and page names.

Inputs

  • Safe Mode — Boolean safety setting; defaults to false. The operation-specific code does not read this setting.
  • Order Product ID — Numeric order product ID to update. The code includes it in the mutation when nonzero.
  • Input (JSON) (required) — A SetOrderProductImageInput JSON object with an imagefiles array. The default example has thumb, large, original, and pagename fields; provide the image values and page name relevant to the order product.

Output shape

A list of items, normally containing one mutation result object per input item.

Each result contains the GraphQL fields result, message, and id. GraphQL errors are raised as node errors unless the workflow is configured to continue on fail.

Links

Discussion