DocsAPI ReferenceProduct/bff/product/update-variant
postProductAdmin BFF

/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

4 total
Body · 4
idstringRequired

Variant relation hash (unique identifier).

codestringRequired

Product code the variant belongs to.

haystackstring | number | booleanRequired

New value for the property.

propertystringRequired

Property to update: name, code, ean, price, priceAddition, cost, soldOut, or warehouse.

Request

POST /bff/product/update-variant

post
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.

Get API Key