Gambio icon

Gambio

Interact with Gambio REST API v3

Actions220

Product Link (v2) → Create

AI-generated

Summary

Create a product link in the Gambio ecommerce platform by associating a product with a specified category via the Gambio REST API v2.

Inputs

  • Authentication (required) — Choose the authentication method: Basic Auth with admin email and password (works for v2 and v3 API) or Bearer Token (JWT) for v3 API only.
  • Product ID (required) — ID of the product to which the link will be added.
  • Link Data (JSON) (required) — JSON object specifying the category to link the product to, format: {"categoryId": 123}.
  • Request Options — Optional settings including batching, SSL certificate acceptance, HTTP proxy, and request timeout configuration.

Output shape

a single record representing the created product link as returned by the Gambio API.

The request sends a POST to /api.php/v2/products/{productId}/links with the parsed Link Data JSON in the body. The output is the response from the API, which typically contains details of the created link.

Examples

Example 1: Create a product link associating product ID 45 to category ID 123 using Basic Auth

Authentication: Basic Auth; Product ID: 45; Link Data: {"categoryId": 123}

Discussion