BizKitHub
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

JSON body

Request body

application/json
idstringRequired

Variant relation hash (unique identifier).

Examplea1b2c3d4
codestringRequired

Product code the variant belongs to.

Examplemy-product
haystackstring | number | booleanRequired

New value for the property.

One of 3:
Variant 1
string
Variant 2
number
Variant 3
boolean
propertystringRequired

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

Examplename

Response schema

1 status code documented

200Success
successbooleanRequired

Whether the variant was updated.

Response example

application/json
{
  "success": false
}

Request example

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"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key