---
title: "PUT /api/videofiles/{id}"
method: PUT
path: "/api/videofiles/{id}"
tags: ["videofiles"]
---

# PUT /api/videofiles/{id}

`PUT /api/videofiles/{id}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - API key in cookie `sessionid`

Video file list and detail endpoint.

## Path parameters

- `id` integer, required

## Request body

- VideoFileRequest
  - `video` integer, required
  - `variant` 'large_thumb' | 'broadcast' | 'vc1' | 'med_thumb' | 'small_thumb' | 'original' | 'theora' | 'srt' | 'cloudflare_id' | 'dash' | 'dash_preview' | 'webm_med' | 'hls', required: * `large_thumb` - Large thumbnail * `broadcast` - Broadcast master * `vc1` - VC-1 * `med_thumb` - Medium thumbnail * `small_thumb` - Small thumbnail * `original` - Original upload * `theora` - Ogg Theora * `srt` - SubRip subtitles * `cloudflare_id` - Cloudflare Stream identifier * `dash` - MPEG-DASH manifest * `dash_preview` - Transient low-quality MPEG-DASH manifest * `webm_med` - Medium-quality WebM * `hls` - HLS playlists over the DASH media
  - `filename` string, required
  - `integratedLufs` number, double, nullable
  - `truepeakLufs` number, double, nullable
  - `profileRevision` integer: Revision of the encoding profile that produced this file. 0 means it predates profile tracking.

## Response `200`

- VideoFile
  - `id` integer, required
  - `createdTime` string, date-time, required: Time the video file was created
  - `video` integer, required
  - `variant` 'large_thumb' | 'broadcast' | 'vc1' | 'med_thumb' | 'small_thumb' | 'original' | 'theora' | 'srt' | 'cloudflare_id' | 'dash' | 'dash_preview' | 'webm_med' | 'hls', required: * `large_thumb` - Large thumbnail * `broadcast` - Broadcast master * `vc1` - VC-1 * `med_thumb` - Medium thumbnail * `small_thumb` - Small thumbnail * `original` - Original upload * `theora` - Ogg Theora * `srt` - SubRip subtitles * `cloudflare_id` - Cloudflare Stream identifier * `dash` - MPEG-DASH manifest * `dash_preview` - Transient low-quality MPEG-DASH manifest * `webm_med` - Medium-quality WebM * `hls` - HLS playlists over the DASH media
  - `filename` string, required
  - `integratedLufs` number, double, nullable
  - `truepeakLufs` number, double, nullable
  - `profileRevision` integer: Revision of the encoding profile that produced this file. 0 means it predates profile tracking.

## Other responses

- `400`
- `401`
- `403`
- `404`
- `405`
- `406`
- `415`
- `500`

## Changes

- **2026-11-13** `44ce1929eb4b`: 1 warning, 1 info
  - added the new `hls` enum value to the `variant` response property for the response status `200`
  - added the new `hls` enum value to the request property `variant`
- **2026-09-04** `e1828b395fe4`: 1 warning, 1 info
  - added the new `dash_preview` enum value to the `variant` response property for the response status `200`
  - added the new `dash_preview` enum value to the request property `variant`
- **2026-08-27** `3761c2b166bb`: 1 breaking, 3 info
  - added `#/components/schemas/VideofilesUpdateProfileRevisionErrorComponent` to the `oneOf[#/components/schemas/VideofilesUpdateValidationError]/errors/items/` response property `oneOf` list for the response status `400`
  - added the new optional request property `profileRevision`
  - added the optional property `profileRevision` to the response with the `200` status
  - added `profile_revision` discriminator mapping keys to the `oneOf[#/components/schemas/VideofilesUpdateValidationError]/errors/items/` response property for the response status `400`
- **2026-08-19** `2bacf53705f7`: 1 breaking, 1 warning, 2 info
  - for the `path` request parameter `id`, the type changed from `string` to `integer`
  - added the new `webm_med` enum value to the `variant` response property for the response status `200`
  - removed the pattern `^\d+$` from the `path` request parameter `id`
  - added the new `webm_med` enum value to the request property `variant`
- …earlier changes not shown

[Operation history](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/changes/api/videofiles/:id/put.md)

---

[API](https://skmtc.dev/frikanalen/apis/frikanalen-django-api.md) - [All operations](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/llms.txt) - [OpenAPI document](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/revisions/ebd4175e41fe?raw)
