---
title: "Add thumbnail to file"
method: POST
path: "/files/{id}/thumbnails/{thumbnail_id}"
tags: ["files"]
---

# Add thumbnail to file

`POST /files/{id}/thumbnails/{thumbnail_id}`

Attaches an already-existing thumbnail to a file.

## Path parameters

- `id` string, required
- `thumbnail_id` string, required

## Response `200`

OK

## Other responses

- `404` — The requested resource was not found

## Changes

- **2021-07-23** `6ab2562e8acd` — 1 info
  - added the non-success response with the status `404`
- **2020-09-29** `8bd7fd33f496` — 1 info
  - removed the non-success response with the status `404`

[Change history](https://skmtc.dev/clowder-framework/apis/clowder/changes/files/:id/thumbnails/:thumbnail_id/post.md)

---

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