---
title: "Attach existing preview to file"
method: POST
path: "/files/{id}/previews/{p_id}"
tags: ["files"]
---

# Attach existing preview to file

`POST /files/{id}/previews/{p_id}`

A file is the raw bytes plus metadata.

## Path parameters

- `id` string, required
- `p_id` string, required

## Request body

- object
  - `extractor_id` string

## Response `200`

OK

## Other responses

- `404` — The requested resource was not found

---

[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)
