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

5 body

5 total
Body · 5
parameterCodestringRequired

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

labelstringRequired

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

Length: 1
codestring

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

colorHexstring

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

positionnumber

Sort order position. Defaults to 0.

Request

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

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.

Get API Key