List a benchmark's scorings
Page through the scorings of a custom benchmark's own images.
/v1/benchmarks/{benchmark_id}/scoringsLists 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.
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.
uuidQuery Parameters
Number of items to return.
101 <= value <= 100Number of items to skip.
00 <= valueResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://ext.vizit.com/v1/benchmarks/497f6eca-6276-4993-bfeb-53cbbbba6f08/scorings"[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "benchmark_id": "f1254acf-0c77-40a6-91d2-a34bd4970fd9", "retailer": "amazon", "product_category_id": "8df7b127-d8ab-4b5d-a571-ee2b3ab38511", "product_category_name": "Snack Bars", "status": "PROCESSING", "requested_at": "2019-08-24T14:15:22Z", "ready_at": "2019-08-24T14:15:22Z", "error_code": "ENQUEUE_FAILED" }]{ "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"}DELETERemove an image from a benchmark
Removes one image from a custom benchmark. The image itself stays in your workspace.
POSTScore a benchmark's images
Scores every visible image in the benchmark against the benchmark itself under `product_category_id`, so [List a benchmark's images](/api/benchmarks/listBenchmarkImages) can rank them. The benchmark needs `minimum_images` visible images. The response is `202` with a scoring `id`; poll it with [Retrieve a benchmark scoring](/api/benchmarks/getBenchmarkScoring). Repeating the request for the same category within 5 minutes returns the same scoring without queueing it again, so a retry is safe.