OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Products Attribute Price

AI-generated

Summary

Create or update product attribute price records in OnPrintShop by sending one or more ProductsAttributePriceInput objects through the Complete API mutation. Choose Fields mode to build the inputs from form fields or JSON Object mode to provide the mutation arguments directly; Safe Mode blocks this write when enabled.

Inputs

  • Safe Mode — Defaults to false. When enabled, blocks mutations in the Complete API.
  • Input Mode — Choose Fields to add one or more input rows, or JSON Object to supply the mutation arguments as JSON.
  • Inputs (required) — In Fields mode, add one or more rows. Each row can include attribute_id, attribute_price_id, attributes_price, delete, extra_page_price, product_id, site_admin_markup, size_from, size_id, size_to, and vendor_price. These row fields are optional in the UI.
  • Arguments JSON — In JSON Object mode, supply the arguments for the mutation. The API declares inputs as a required array of ProductsAttributePriceInput objects.
  • Partial Response — Choose Fail on Errors (default) or Return Partial Data. Partial results may include failures; reconcile each row before further writes.
  • Return Fields Mode — Choose All Fields (default) or Custom Selection for the mutation response.
  • Return Fields — In Custom Selection mode, choose which response fields to return: id, index, message, or result.

Output shape

A list of mutation result objects.

Each result can contain index, result, message, and id; the selected return fields mode controls which are included. The operation accepts a batch of inputs. GraphQL errors are raised unless partial data is requested.

Links

Discussion