OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Set Batch

AI-generated

Summary

Create a new OnPrintShop batch or update an existing one by sending a SetBatchMasterInput JSON object to the setBatch GraphQL mutation. The response includes the mutation result, message, batch ID, and batch links.

Inputs

  • Batch ID — Batch ID to update; 0 creates a new batch.
  • Input (JSON) (required) — A SetBatchMasterInput JSON object containing batch details such as name, nesting dimensions, print count, instructions, file names or image links, and jobs.
  • Safe Mode — For Complete API operations, blocks mutations when enabled. For legacy actions, it reduces nested response fields; this operation uses the legacy mutation handler.

Output shape

A single item containing the mutation result.

Includes result, message, id, batch_link, and batch_pdf_link; the node also adds batch_id as an alias for id.

Links

Discussion