/bff/product/update-variant
Updates a single property of a product variant. Used for inline editing in data grids. Regenerates the parent product read model after update.
ProductpostBffProductUpdate-variant
Parameters
4 body
Body · 4
idstringRequiredVariant relation hash (unique identifier).
codestringRequiredProduct code the variant belongs to.
haystackstring | number | booleanRequiredNew value for the property.
propertystringRequiredProperty to update: name, code, ean, price, priceAddition, cost, soldOut, or warehouse.
Request
POST /bff/product/update-variant
curl -X POST "https://api.bizkithub.com/bff/product/update-variant" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"id": "a1b2c3d4",
"code": "my-product",
"haystack": "XL",
"property": "name"
}'Response
JSON payload
{
"success": false
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.