---
title: "Attach existing preview to collection"
method: POST
path: "/collections/{c_id}/previews/{p_id}"
tags: ["collections"]
---

# Attach existing preview to collection

`POST /collections/{c_id}/previews/{p_id}`

Collections are groupings of datasets

## Path parameters

- `c_id` string, required
- `p_id` string, required

## Request body

- object
  - `extractor_id` string
  - `preview_type` string

## Response `200`

OK

---

[API](https://skmtc.net/clowder-framework/apis/clowder.md) · [All operations](https://skmtc.net/clowder-framework/apis/clowder/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clowder-framework/clowder/versions/bcd187478e0d/schema)
