Update a custom benchmark
Rename a custom benchmark or change its description or asset type.
/v1/benchmarks/{benchmark_id}Changes the fields you send and keeps the rest. Send null to
clear description or asset_type; name cannot be cleared. The
scope is fixed at creation.
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.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
New name. Surrounding whitespace is trimmed; a blank name or null is rejected.
length <= 255New description; null clears it.
New Other asset label; null clears it. A hero benchmark cannot
have one (422 HERO_ASSET_TYPE).
length <= 50Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://ext.vizit.com/v1/benchmarks/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Spring refresh hero set", "description": "string", "scope": "hero", "asset_type": "string", "image_count": 0, "minimum_images": 30, "recommended_images": 80, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "last_scoring": { "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"}GETRetrieve a custom benchmark
Returns one custom benchmark from your organization's default workspace. Another workspace's benchmark, a deleted one, or a Vizit benchmark answers `404 BENCHMARK_NOT_FOUND`.
DELETEDelete a custom benchmark
Deletes a custom benchmark. It disappears from every benchmark route at once, and its images stay in your workspace.