OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Product → Get Many Option Groups (Legacy)

AI-generated

Summary

List option groups related to products using the legacy API query in OnPrintShop.

Inputs

  • Safe Mode — Boolean flag to block mutations or reduce nested response fields to avoid 5xx errors in legacy queries.

Output shape

a list of option group records, each with fields such as ID, name, usage context, display style, option count, collapse status, and optionally total count metadata.

Supports pagination via 'limit' and 'offset' query parameters. Returns error information if the API responds with errors. This operation uses a GraphQL query named 'getOptionGroup' with parameters 'prod_add_opt_group_id', 'use_for', 'limit', and 'offset'. Safe Mode reduces nested fields on 5xx errors.

Examples

Example 1: Retrieve option groups optionally filtered by group ID and usage.

Set 'prod_add_opt_group_id' and/or 'use_for' in Query Parameters with pagination controls 'limit' and 'offset'. Enable 'Safe Mode' to handle large or complex queries reliably.

Links

Discussion