/bff/branch/save-products
Replaces the full set of products assigned to a branch (M:N via shop__branch_product). Uses a diff strategy — only the rows that actually need to be added or removed are touched. All product IDs are validated against the organisation; passing a foreign or deleted product is rejected.
BranchpostBffBranchSave-products
Parameters
2 body
Body · 2
slugstringRequiredBranch slug.
productIdsstring[]RequiredFull desired list of product IDs for the branch. The assortment is replaced, not appended.
Request
POST /bff/branch/save-products
curl -X POST "https://api.bizkithub.com/bff/branch/save-products" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"slug": "example_slug",
"productIds": [
"string"
]
}'Response
JSON payload
{
"success": false,
"added": 0,
"removed": 0,
"total": 0
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.