/bff/product-parameter/add
Creates a new parameter definition. For enum/color types, add predefined values afterwards via /value-add. DB-level constraints enforce: variant_forming only for enum/color; multi_value only for enum/color.
Parameters
10 body
namestringRequiredDisplay name (e.g. "Weight", "Color", "Material").
codestringURL-friendly code. Auto-generated from name if not provided.
groupCodestringCode of the group to assign the parameter to. Omit for ungrouped.
typestring | string | string | string | stringParameter data type. "string" = free text, "number" = numeric with optional unit, "boolean" = true/false, "enum" = predefined list of values, "color" = predefined colors with hex codes.
unitstringUnit label for number type (e.g. "mm", "kg", "W").
filterablebooleanShow in frontend filters. Defaults to false.
comparablebooleanShow in product comparison. Defaults to false.
variantFormingbooleanWhether this parameter creates product variants. Only allowed for enum/color type. Defaults to false.
multiValuebooleanAllow multiple values per product. Only allowed for enum/color type. Defaults to false.
positionnumberSort order position. Defaults to 0.
Request
POST /bff/product-parameter/add
curl -X POST "https://api.bizkithub.com/bff/product-parameter/add" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"name": "Weight",
"code": "weight",
"groupCode": "technical-specs",
"unit": "kg",
"filterable": false,
"comparable": false,
"variantForming": false,
"multiValue": false,
"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.