DocsAPI ReferenceProduct Category/bff/product-category/category-custom-field-upsert
postProduct CategoryAdmin BFF

/bff/product-category/category-custom-field-upsert

Adds (or edits) a custom field definition that will be shown only for products whose main_category equals this category.

Product CategorypostBffProduct-categoryCategory-custom-field-upsert

Parameters

11 body

11 total
Body · 11
categoryCodestringRequired
idstring
keystringRequired

snake_case identifier, 2-32 chars.

typestringRequired
labelstringRequired
helperTextstring | null
placeholderstring | null
requiredbooleanRequired
activebooleanRequired
positionnumber
validationPatternstring | null

Request

POST /bff/product-category/category-custom-field-upsert

post
curl -X POST "https://api.bizkithub.com/bff/product-category/category-custom-field-upsert" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "categoryCode": "example_categoryCode",
  "id": "example_id",
  "key": "example_key",
  "type": "text",
  "label": "example_label",
  "required": false,
  "active": false,
  "position": 0
}'

Response

JSON payload

{
  "id": "example_id"
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key