/bff/product/detail-change-code
Changes the unique code of a product. The new code is automatically slugified and deduplicated. Includes an optimistic concurrency check: currentCode must match the actual code.
ProductpostBffProductDetail-change-code
Parameters
3 body
Body · 3
idstringRequiredCurrent product code (used to look up the product).
currentCodestringRequiredExpected current code (optimistic concurrency check).
newCodestringRequiredNew product code. Will be slugified and deduplicated.
Request
POST /bff/product/detail-change-code
curl -X POST "https://api.bizkithub.com/bff/product/detail-change-code" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"id": "my-product",
"currentCode": "my-product",
"newCode": "my-new-product"
}'Response
JSON payload
{
"code": "example_code"
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.