Gambio icon

Gambio

Interact with Gambio REST API v3

Actions220

Product (v2) → Update Stock

AI-generated

Summary

Update the stock quantity of a specific product in a Gambio store using the v2 API.

Inputs

  • Authentication — Choose the method to authenticate with the Gambio API: Basic Auth (admin email and password; supports v2 and v3 API) or Bearer Token (JWT token; supports v3 API only). Defaults to Basic Auth.
  • Product ID (required) — The numeric ID of the product whose stock quantity you want to update.
  • Stock Quantity (required) — The new stock quantity (number) to set for the specified product.
  • Request Options — Optional settings affecting the request such as batching (to throttle requests), ignoring SSL issues, using an HTTP proxy, and request timeout in milliseconds.

Output shape

The operation returns the API response from updating the product stock, typically including updated product information or status. The exact response structure depends on the Gambio API v2 behavior and may include confirmation of the stock update or error details if the update fails.

This API call uses a PATCH method to update the product's stock quantity. Proper authentication credentials are required. The updated quantity is sent in the request body with property named "quantity". Any errors or issues with the request (e.g., invalid product ID, authentication failure) will be reflected in the response.

Discussion