---
title: "Upload a thumbnail for a showcase tile"
method: POST
path: "/showcase/{showcase_id}/thumbnail"
tags: ["Showcase"]
---

# Upload a thumbnail for a showcase tile

`POST /showcase/{showcase_id}/thumbnail`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/showcase/{showcase_id}/thumbnail`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/showcase/:showcase_id/thumbnail/post.ts> (a function with typed inputs; its response is checked against the schema)

Requires the `h2ogpte/chat/manage_showcase` permission. Multipart upload
of an image (jpg/png/webp/gif, max 20 MB). Stored in object storage; the
resulting path is saved to the showcase entry.

## Path parameters

- `showcase_id` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary, required

## Response `200`

Successful operation

- UploadShowcaseThumbnailResponse
  - `thumbnail_path` string, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden
- `404`: Not found
- `413`: File too large
- `default`: Unexpected error

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
