---
title: "Create a single file thumbnail"
method: POST
path: "/dam/files/{file_id}/thumbnails"
tags: ["DAM: Files: Thumbnails"]
---

# Create a single file thumbnail

`POST /dam/files/{file_id}/thumbnails`

## Request

- Base URL: `https://api.kontainer.com/jsonapi/v2`
- URL: `https://api.kontainer.com/jsonapi/v2/dam/files/{file_id}/thumbnails`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/kontainer/apis/kontainer-api-documentation/docs/dam/files/:file_id/thumbnails/post.ts> (a function with typed inputs; its response is checked against the schema)

## Create File Thumbnail
    Endpoint for retrieving a file. The file may not be trashed, incomplete or soft deleted.

## Path parameters

- `file_id` string, required

## Request body `multipart/form-data`

- object
  - `data[type]` string: Resource Type
  - `data[attributes][thumbnail_content]` string, binary: Thumbnail content

## Response `202`

Accepted

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/kontainer/apis/kontainer-api-documentation.md) - [All operations](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/revisions/b80a5167e09a?raw)
