Parametry
Brak parametrów
Ten endpoint nie przyjmuje parametrów w ścieżce, query, nagłówku ani w treści.
Internal endpoint called by the scout image-variants worker (issue #80). Accepts 4 pre-rendered WebP buffers for a shop__product_image, uploads them to the same S3 directory as the source blob (deterministic key <source>.<code>-webp.webp), and returns the created core__blob rows. Idempotent: overlapping calls hit the (blob_path, organisation_id) unique constraint and return the existing rows.
Side effects (persist + invalidate):
shop__product_image.variant_{thumb,card,hero,zoom}_webp_blob_id on the row.updateProductReadModel([product_id]) so /product/detail and /product/feed ship the fresh URLs on the next fetch. A best-effort try/catch protects the endpoint from a failed rebuild — the variant upload itself always succeeds.Brak parametrów
Ten endpoint nie przyjmuje parametrów w ścieżce, query, nagłówku ani w treści.
1 udokumentowany kod statusu
Ta odpowiedź nie ma treści JSON.
{
"success": true
}POST /api/v1/internal/blob/create-product-image-variants
curl -X POST "https://api.bizkithub.com/api/v1/internal/blob/create-product-image-variants" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.