---
title: "Updates a media."
method: PATCH
path: "/1/vod/channel/{channel}/media/{media}"
tags: ["V2 > Media"]
---

# Updates a media.

`PATCH /1/vod/channel/{channel}/media/{media}`

## Path parameters

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

## Request body

- object
  - `folder_id` integer, required — <br/>This field must exist on the `folders` database in the `id` column.
  - `category_id` integer — <br/>This field must exist on the `categories` database in the `id` column.
  - `language_id` integer — <br/>This field must exist on the `languages` database in the `id` column.
  - `name` string, required — <br/>This field must not exist on the `medias` database in the `name` column.
  - `description` string
  - `validated` boolean
  - `published` boolean
  - `password` string
  - `streams` string — <br/>This field must be present and not empty only if any of the following fields are present:`collected_at`
  - `shot_boundaries` string[]
  - `duration` number — <br/>This field must be present and not empty only if any of the following fields are present:`collected_at`
  - `client` '"cli"' | '"http"', required
  - `http_ip` string, ip — <br/>This field must be present and not empty if the `client` field is equal to any of the following:`http`
  - `http_user_agent` string — <br/>This field must be present and not empty if the `client` field is equal to any of the following:`http`
  - `cli_user` string — <br/>This field must be present and not empty if the `client` field is equal to any of the following:`cli`
  - `cli_hostname` string — <br/>This field must be present and not empty if the `client` field is equal to any of the following:`cli`
  - `debug` boolean

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` Acfc41a0Media
    - `category_id` integer
    - `language_id` integer
    - `name` string, required
    - `shot_boundaries` unknown[]
      - unknown
    - `description` string
    - `validated` boolean
    - `published` boolean
    - `logo_id` string
    - `password` string

---

[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/667aae28fec6/schema)
