OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Set Option Group

AI-generated

Summary

Create or update option groups that organize product additional options in the OnPrintShop system.

Inputs

  • Input (JSON) (required) — A JSON object conforming to the SetOptionGroupInput schema representing the option group data to create or update.
  • Safe Mode — Boolean flag to block mutations in Complete API or use reduced nested response for legacy actions; defaults to false.

Output shape

a single JSON object representing the result of the option group mutation, including fields indicating success, messages, and the updated option group identifier.

If the mutation fails, an error will be thrown and workflow execution will stop unless 'Continue On Fail' is enabled. The output includes the mutation response fields such as 'result', 'message', and 'prod_add_opt_group_id'. The input must be a valid JSON object as per the OnPrintShop API's SetOptionGroupInput type.

Examples

Example 1: Using the Set Option Group mutation to create a new option group

Set the operation to 'Set Option Group' and provide a valid SetOptionGroupInput JSON object for the 'Input (JSON)' parameter. Optionally toggle 'Safe Mode' as needed.

Links

Discussion