Gambio icon

Gambio

Interact with Gambio REST API v3

Actions220

Product Option (v3) → Create

AI-generated

Summary

Create a new product option for a Gambio product via POST /api.php/v3/products/{productId}/options.

Inputs

  • authentication (required) — Authentication method. 'basicAuth' uses admin email/password (works v2/v3). 'bearerToken' uses JWT from Gambio Admin (v3 only).
  • productId (required) — ID of the product to which the option will be added.
  • jsonBody (required) — JSON array containing the product option data to send. Refer to Gambio API documentation for the expected structure.
  • requestOptions — Optional collection for request configuration including batching (batchSize, batchInterval), proxy, SSL certificate validation, and timeout.

Output shape

main

Returns the created product option data on the main output line.

Examples

Example 1: Create a single product option using basic auth.

Set authentication to 'basicAuth', provide the target product ID, and supply a JSON array with the option data (e.g., [{ name: 'Color', values: ['Red', 'Blue'] }]).

Discussion