Remove an image from a benchmark
Take an image out of a custom benchmark without deleting it.
/v1/benchmarks/{benchmark_id}/images/{image_id}Removes one image from a custom benchmark. The image itself stays in your workspace.
Authorization
bearerAuth Short-lived access token issued by Create a token.
Send it on every request as Authorization: Bearer <token>.
In: header
Path Parameters
The id of a custom benchmark in your default workspace.
uuidThe image to remove from the benchmark.
uuidResponse Body
application/json
application/json
application/json
curl -X DELETE "https://ext.vizit.com/v1/benchmarks/497f6eca-6276-4993-bfeb-53cbbbba6f08/images/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}{ "detail": "string", "status_code": 0, "error_code": "IMAGE_DOWNLOAD_FAILED", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "extra": { "failed_urls": [ { "url": "https://cdn.example.com/broken.jpg", "reason": "IMAGE_DOWNLOAD_TIMEOUT" }, { "url": "https://cdn.example.com/icon.svg", "reason": "UNSUPPORTED_IMAGE_FORMAT" } ] }, "timestamp": "2019-08-24T14:15:22Z"}POSTUpload images to a benchmark in bulk
Downloads up to 50 images, stores each in your default workspace with the benchmark's scope as its image type, and adds it to the benchmark. Each image is downloaded with the same checks as [Upload an image to a benchmark](/api/benchmarks/uploadBenchmarkImage), without a product category. Each image succeeds or fails on its own, so one bad URL never refuses the batch. The response is `202` with one result per requested image, in request order: `PROCESSING` with an `image_id` for a stored image, or `ERROR` with a `reason` for a failed one. Downloads share a time budget, so an image not yet uploading when it runs out fails with `IMAGE_DOWNLOAD_TIMEOUT` and is not stored. There is no deduplication by URL: retrying a whole batch stores the accepted images again. Retry only the failed items.
GETList a benchmark's scorings
Lists the scorings of the benchmark's own images, one per product category: requesting a scoring again for a category replaces that category's scoring. Newest request first, then by scoring id. Page with `limit` and `offset`; the `Vizit-Total-Count` response header carries the number of scorings. Scorings of a collection against this benchmark are not listed. `benchmark_id` is always this benchmark and `retailer` is always `null`. A scoring that ended in `ERROR` carries `error_code`.