---
title: "Create new Media"
method: POST
path: "/1/vod/channel/{channel}/upload"
tags: ["V2 > Upload"]
---

# Create new Media

`POST /1/vod/channel/{channel}/upload`

Creates new Media with either
$post = ['folder' => $folderIdentifier, 'filename' => $fileName, 'url' => $videoUrl]; // uploading file from url
$post = ['folder' => $folderIdentifier, 'name' => $fileName, 'file' => new \CURLFile($filePath, '', $fileName)]; // uploading file

## Path parameters

- `channel` integer, required

## Response `201`

Created

- 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/1c59d729611a/schema)
