OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Additional Option Attributes

AI-generated

Summary

Update multiple additional option attribute records in OnPrintShop by sending a batch of attribute objects with specified properties.

Inputs

  • safeMode — Boolean flag to block mutations in the Complete API context (defaults to false).
  • Input Mode (required) — Select input format for the additional option attributes: 'Fields' to input individual fields or 'JSON Object' for raw JSON array input.
  • Inputs (required) — When 'Fields' mode is selected, provide one or more additional option attribute items with optional detailed fields such as attribute ID, key, label, description, multiplier, etc.
  • Arguments JSON (required) — When 'JSON Object' mode is selected, provide a JSON array of additional option attribute objects matching the API schema.
  • Partial Response — Choose if the operation should fail on errors or return partial data with errors included.
  • Return Fields Mode — Select whether to return all fields or a custom subset of fields in the output.
  • Return Fields — If 'Custom Selection' is chosen, specify which fields to include in the operation's response (e.g., 'ID', 'Index', 'Message', 'Result').

Output shape

a list of objects corresponding to the mutation results, each including fields per the selected Return Fields.

This operation performs batch mutations to update additional option attributes in the OnPrintShop platform. Responses contain an array with index, result status, message, and resource ID for each updated attribute. If 'Partial Response' is set to return partial data, some items may indicate failures. Input objects must comply with the AdditionalOptionAttributesInput type expected by OnPrintShop API mutations.

Examples

Example 1: Update additional option attributes using individual fields input.

Set 'Input Mode' to 'Fields', add one or more attribute items with desired fields like 'attribute_id', 'label', and 'multiplier', then execute the node to update those attributes.

Example 2: Update additional option attributes using raw JSON input.

Set 'Input Mode' to 'JSON Object', provide a JSON array of attribute objects complying with the API schema in the 'Arguments JSON' field, then execute the node to apply the updates.

Links

Discussion