FCHubFCHub.co

Update stock management

Enable or disable stock management for a product.

PUT
/products/{product_id}/update-manage-stock

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

manage_stock?string

Enable stock management (1 or 0)

Response Body

application/json

application/json

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