---
title: "Upload a video file"
method: POST
path: "/medias/{id}/upload/video"
tags: ["Medias"]
---

# Upload a video file

`POST /medias/{id}/upload/video`

Upload a new video file for a given media ID

## Path parameters

- `id` string, required

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `bit_rate` string
    - `duration` string
    - `filename` string
    - `format_long_name` string
    - `format_name` string
    - `nb_programs` integer
    - `nb_streams` integer
    - `probe_score` integer
    - `size` string
    - `start_time` string
  - `metadata` object

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2020-12-08** `a75b2e935c54` — 1 info
  - api operation id `UploadVideo` removed and replaced with `uploadVideo`
- **2020-12-08** `186339c67669` — 1 info
  - endpoint added
- **2020-08-12** `e96b35d97038` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/dreamvo/apis/gilfoyle-server/changes/medias/:id/upload/video/post.md)

---

[API](https://skmtc.dev/dreamvo/apis/gilfoyle-server.md) · [All operations](https://skmtc.dev/dreamvo/apis/gilfoyle-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dreamvo/gilfoyle-server/revisions/47e030153fc0/schema)
