BizKitHub
DocsAPI ReferenceProduct Parameter/bff/product-parameter/value-add
postProduct ParameterAdmin BFF

/bff/product-parameter/value-add

Adds a new predefined value to an enum or color parameter. Fails if the parameter type is not enum or color.

Product ParameterpostBffProduct-parameterValue-add

Parameters

JSON body

Request body

application/json
parameterCodestringRequired

Code of the enum/color parameter to add the value to.

Examplecolor
labelstringRequired

Display label (e.g. "Red", "Large").

Length: 1
ExampleRed
codestringOptional

URL-friendly value code. Auto-generated from label if not provided.

Examplered
colorHexstringOptional

Hex color code for color-type parameters (e.g. "#FF5733"). Validated format.

Example#FF5733
positionnumberOptional

Sort order position. Defaults to 0.

Example0

Response schema

1 status code documented

200Success
idnumberRequired

ID of the created value.

codestringRequired

Final code after slugification.

Response example

application/json
{
  "id": 0,
  "code": "example_code"
}

Request example

POST /bff/product-parameter/value-add

post
curl -X POST "https://api.bizkithub.com/bff/product-parameter/value-add" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "parameterCode": "color",
  "label": "Red",
  "code": "red",
  "colorHex": "#FF5733",
  "position": 0
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key