Collections
Retrieve a collection scoring
Poll a scoring of a collection.
GET
/v1/collections/{collection_id}/scorings/{scoring_id}Returns the progress of a collection scoring. Poll until status
leaves PROCESSING: it reaches COMPLETED once every image is
scored or unreadable, and ERROR if it is still incomplete 30
minutes after the request, with error_code saying why.
A scoring of another collection answers
404 COLLECTION_SCORING_NOT_FOUND.
Authorization
bearerAuth Authorization<token>
Short-lived access token issued by Create a token.
Send it on every request as Authorization: Bearer <token>.
In: header
Path Parameters
collection_id*string
The id of a collection in your default workspace.
Format
uuidscoring_id*string
The id returned by Score a collection.
Format
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://ext.vizit.com/v1/collections/497f6eca-6276-4993-bfeb-53cbbbba6f08/scorings/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "status": "PROCESSING", "scored_images": 0, "total_images": 0, "failed_image_ids": [ "7cc8b638-fa53-4131-940f-2b175dc62ce0" ], "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"}Empty
{ "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"}Empty