Parameters
2 query
Query parameters
· 2codestringRequiredProduct code.
Example
my-productimageIdstringRequiredBlob token of the image to set as main.
Example
abc123def456Sets the specified image as the main/featured image for the product. The main image is used as the product thumbnail in lists and social sharing.
2 query
codestringRequiredProduct code.
my-productimageIdstringRequiredBlob token of the image to set as main.
abc123def4561 status code documented
successbooleanRequiredWhether the main image was updated.
{
"success": false
}GET /bff/product/product-image-mark-main
curl -X GET "https://api.bizkithub.com/bff/product/product-image-mark-main?code=my-product&imageId=abc123def456" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.