/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
5 body
Body · 5
parameterCodestringRequiredCode of the enum/color parameter to add the value to.
labelstringRequiredDisplay label (e.g. "Red", "Large").
Length: 1–∞
codestringURL-friendly value code. Auto-generated from label if not provided.
colorHexstringHex color code for color-type parameters (e.g. "#FF5733"). Validated format.
positionnumberSort order position. Defaults to 0.
Request
POST /bff/product-parameter/value-add
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
}'Response
JSON payload
{
"id": 0,
"code": "example_code"
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.