OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Product Size

AI-generated

Summary

Create or update product sizes in OnPrintShop by sending a batch of ProductSizeInput objects to the Complete API. Choose Fields or JSON Object mode to provide the inputs; Safe Mode does not block this mutation.

Inputs

  • Inputs (required) — A JSON array of product size objects. Use one object for a single size or multiple objects for a batch; bare objects are rejected. JSON Object mode exposes the Arguments JSON field for this array.
  • Safe Mode — The Complete API Safe Mode setting is described as blocking mutations. The source does not show a Safe Mode check for this operation, so it does not prevent this write.

Output shape

A list of items containing the mutation result.

The result includes per-input index, result, message, and id fields. The node sends the array to the setProductSize GraphQL mutation; API GraphQL errors are raised as node errors.

Examples

Example 1: Set one product size

Provide an array with one ProductSizeInput object in the selected input mode.

Example 2: Set multiple product sizes

Provide an array of ProductSizeInput objects; the API returns mutation results for the batch.

Links

Discussion