Skip to main content

Re-check Broken Product Images

POST 

/api/product-images/recheck-broken

Queue a server-side re-check of product images that failed to load on the client, so an image that broke after the last image health check is recorded as broken. An image is recorded as broken (resolvable false, image_checked_at set) only when it has no URL, its stored file is missing, or its remote URL answers HTTP 404/410 twice in a row. Inconclusive answers (blocked, throttled, server errors, timeouts) change nothing, and after two inconclusive answers in a row from one host the rest of that host's images in the same batch are skipped.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Ids that do not exist or are already confirmed broken are skipped, and each image is queued at most once per hour; an image inside that window is accepted but not queued. The re-check runs in the background, so the response only reports how many images were queued.

Authentication: Requires Bearer token. Rate limit: 60 requests per minute for this endpoint.

Request body:

  • image_ids (array<int>, required) — 1–100 product_image ids (positive integers).

Returns 422 if image_ids is empty, exceeds 100, or contains a value that is not a positive integer. Returns 429 when the rate limit is exceeded.

Request​

Responses​

OK

Response Headers
    Content-Type