FCHubFCHub.co

Update product inventory

Update inventory for a specific product variant.

PUT
/products/{product_id}/update-inventory/{variant_id}

Authorization

applicationPassword
AuthorizationBasic <token>

WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).

In: header

Path Parameters

product_id*integer

Product ID

variant_id*integer

Variant ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

total_stock?integer

Total stock quantity

Response Body

application/json

application/json

curl -X PUT "https://your-site.com/wp-json/fluent-cart/v2/products/0/update-inventory/0" \  -H "Content-Type: application/json" \  -d '{}'
{}