OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Add Proof Version

AI-generated

Summary

Adds proof version files to an OnPrintShop order product and records them in proof history. The mutation can also request approval for the added version.

Inputs

  • Order Product ID — Order product to update; the default value 0 is omitted from the API request, so provide its ID.
  • Add Version File Only — Numeric flag passed to OnPrintShop; defaults to 1 to add the version file only.
  • Ask For Approval — Numeric flag passed to OnPrintShop to request approval; defaults to 0.
  • Input (JSON) (required) — SetOrderProductImageInput object, typically with an imagefiles array containing version metadata. Defaults to {"imagefiles": []}.
  • Safe Mode — Global toggle. For this mutation, Safe Mode does not block the request; its Complete API mutation-blocking behavior does not apply to this legacy action.

Output shape

A single item containing the OnPrintShop mutation result.

The result includes the API's result, message, and id fields. GraphQL errors are raised as node errors.

Examples

Example 1: Add a proof version and request approval

Set the Order Product ID, provide version metadata in Input (JSON), leave Add Version File Only at 1, and set Ask For Approval to 1.

Links

Discussion