---
title: "Replaces the thumbnail & poster for a given media"
method: POST
path: "/1/vod/channel/{channel}/media/{media}/thumbnail"
tags: ["V2 > Thumbnail"]
---

# Replaces the thumbnail & poster for a given media

`POST /1/vod/channel/{channel}/media/{media}/thumbnail`

Replaces the thumbnail & poster for a given media  with the file provided in the request as multipart/form-data.

## Path parameters

- `channel` integer, required
- `media` integer, required

## Request body

- object
  - `media_id` integer, required — <br/>This field must exist on the `medias` database in the `id` column.
  - `type` string, required
  - `width` integer — <br/>This field must be present and not empty only if any of the following fields are present:`height`
  - `height` integer — <br/>This field must be present and not empty only if any of the following fields are present:`width`
  - `file` string, file, required — <br/>The file under validation must have a MIME type corresponding to one of the following extensions:`image`, `gif`, `png`, `webp`, `jpg`, `jpe`, `jpeg`, `pjpeg`

## Response `201`

Created

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` Acfc41a0Thumbnail
    - `media_id` integer, required
    - `type` string, required

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/3143e9cbbf77/schema)
