Vizit Public APIAPI
Collections

Delete a collection

Remove a collection and its images from your account.

DELETE/v1/collections/{collection_id}

Removes the collection and its images from your account, including Spark images generated from them, along with the collection's scorings. The images also leave any custom benchmark they were added to, with no warning, so a benchmark can drop below minimum_images and its next scoring answers 400 BENCHMARK_TOO_SMALL. This cannot be undone.

A collection holding an image, or a Spark image generated from one, that is an active hero or carousel image on a PDP cannot be deleted: the whole request is refused with 400 COLLECTION_CONTAINS_ACTIVE_IMAGES and nothing is removed. A collection in another workspace or organization, or one already deleted, answers 404 COLLECTION_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.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X DELETE "https://ext.vizit.com/v1/collections/497f6eca-6276-4993-bfeb-53cbbbba6f08"
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"}
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