---
title: "POST /api/videos"
method: POST
path: "/api/videos"
tags: ["videos"]
---

# POST /api/videos

`POST /api/videos`

## Request

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

List of videos

Query parameters
----------------

`q` - Free search query.

`ordering` - Order results by specified field.  Prepend a minus for
             descending order.  I.e. `?ordering=-id`.

`creator__email` - the email of the video's creator

`framerate` - the framerate in hz * 1000

`has_tono_records` - if the tono flag is set (true/false)

`is_filler` - if this is a filler video (true/false)

`name` - the exact name/title of the video

`name__icontains` - substring is part of name/title of the video

`organization` - Frikanalen ID of organization behind video.  Given
                 alongside `q`, it also narrows the search to that
                 organization's own videos: the organization's name
                 stops counting as a match, since it would otherwise
                 return the whole catalogue.

`played_count_web` - the number of times this video was played on the web

`played_count_web__gt` - greater than

`played_count_web__gte` - greater than or equal

`played_count_web__lt`  - less than

`played_count_web__lte` - less than or equal

`publish_on_web` - if this video is published ont the web (true/false)

`proper_import` - whether ingest finished (true/false).  Omitted, the
                  list shows only finished videos, which is the public
                  catalogue.

`ref_url` - the exact reference url

`ref_url__startswith` - the reference url start with this string

`ref_url__icontains` - the reference url contain this string

## Request body

- VideoCreateRequest: The write serializer: the organization is named by primary key, or left out entirely for validate() to infer from the creator.
  - `name` string, required
  - `description` string, nullable
  - `organization` integer
  - `seriesId` integer, nullable
  - `episodeNumber` integer, nullable: Episode number within the series. Leave blank when the series is unordered.
  - `duration` string
  - `categories` string[]
  - `framerate` integer: Framerate of master video in thousands / second
  - `properImport` boolean: Has the video been properly imported?
  - `hasTonoRecords` boolean
  - `publishOnWeb` boolean
  - `isFiller` boolean: You still have the editorial responsibility. Only affect videos from members.
  - `refUrl` string: URL for reference
  - `spokenLanguage` union: Language tag for the speech in this programme, e.g. 'no', 'nn', 'se' (Northern Sami) or 'en'. Leave blank if there is no speech.
    - string
    - string
  - `minimumAge` union: Norwegian age rating (Medietilsynet's scale). Leave blank when the programme has not been rated -- blank publishes no rating at all, while 'All ages' publishes one. * `0` - All ages * `6` - 6 * `9` - 9 * `12` - 12 * `15` - 15 * `18` - 18
    - 0 | 6 | 9 | 12 | 15 | 18: * `0` - All ages * `6` - 6 * `9` - 9 * `12` - 12 * `15` - 15 * `18` - 18
    - unknown
  - `liveSource` integer, nullable: Makes the video a live programme: it airs from this live source, one of the organization's own, until it has a file. Null for none.
  - `uploadedTime` string, date-time, nullable: Time the original video for the program was uploaded

## Response `201`

- VideoCreate: The write serializer: the organization is named by primary key, or left out entirely for validate() to infer from the creator.
  - `id` integer, required
  - `name` string, required
  - `description` string, nullable
  - `files` VideoFiles, required
    - `largeThumb` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `broadcast` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `vc1` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `medThumb` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `smallThumb` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `original` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `theora` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `srt` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `cloudflareId` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `dash` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `dashPreview` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `webmMed` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
    - `hls` VideoFileLink
      - `url` string, required
      - `mimeType` string, nullable, required
  - `creator` string, email, required
  - `organization` integer
  - `series` SeriesSummary, nullable, required
    - `id` integer, required
    - `name` string, required
    - `synopsis` string
    - `imageUrl` string, uri, required
  - `episodeNumber` integer, nullable: Episode number within the series. Leave blank when the series is unordered.
  - `duration` string
  - `durationSec` number, double, nullable, required
  - `categories` string[]
  - `framerate` integer: Framerate of master video in thousands / second
  - `properImport` boolean: Has the video been properly imported?
  - `hasTonoRecords` boolean
  - `publishOnWeb` boolean
  - `isBanned` boolean, required: Removed pending review: hidden from the website, listings and the schedule, and not aired. The video page only says it has been removed, with no reason.
  - `isFiller` boolean: You still have the editorial responsibility. Only affect videos from members.
  - `refUrl` string: URL for reference
  - `spokenLanguage` union: Language tag for the speech in this programme, e.g. 'no', 'nn', 'se' (Northern Sami) or 'en'. Leave blank if there is no speech.
    - string
    - string
  - `minimumAge` union: Norwegian age rating (Medietilsynet's scale). Leave blank when the programme has not been rated -- blank publishes no rating at all, while 'All ages' publishes one. * `0` - All ages * `6` - 6 * `9` - 9 * `12` - 12 * `15` - 15 * `18` - 18
    - 0 | 6 | 9 | 12 | 15 | 18: * `0` - All ages * `6` - 6 * `9` - 9 * `12` - 12 * `15` - 15 * `18` - 18
    - unknown
  - `liveSource` integer, nullable: Makes the video a live programme: it airs from this live source, one of the organization's own, until it has a file. Null for none.
  - `liveAirings` LiveAiring[], required: The live airings of a live programme that have not ended yet, soonest first: when it goes out, and whether it is on air now. Empty for a video without a live source, and once it has a file.
    - `id` integer, required
    - `starttime` string, date-time, required
    - `endtime` string, date-time, required
  - `createdTime` string, date-time, required: Time the program record was created
  - `updatedTime` string, date-time, required: Time the program record has been updated
  - `uploadedTime` string, date-time, nullable: Time the original video for the program was uploaded

## Other responses

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

## Changes

- **2026-11-20** `944071a8255b`: 1 breaking, 3 info
  - the response property `categories` became optional for the status `201`
  - the request property `categories` became optional
  - removed the `required` enum value from the `oneOf[#/components/schemas/VideosCreateValidationError]/errors/items/oneOf[#/components/schemas/VideosCreateCategoriesErrorComponent]/code` response property for the response status `400`
  - added the required property `isBanned` to the response with the `201` status
- **2026-11-19** `270524f03f87`: 1 info
  - added the required property `liveAirings` to the response with the `201` status
- **2026-11-13** `44ce1929eb4b`: 1 info
  - added the optional property `files/allOf[#/components/schemas/VideoFiles]/hls` to the response with the `201` status
- **2026-11-11** `9310b4854726`: 1 breaking, 3 info
  - added `#/components/schemas/VideosCreateLiveSourceErrorComponent` to the `oneOf[#/components/schemas/VideosCreateValidationError]/errors/items/` response property `oneOf` list for the response status `400`
  - added the new optional request property `liveSource`
  - added the optional property `liveSource` to the response with the `201` status
  - added `live_source` discriminator mapping keys to the `oneOf[#/components/schemas/VideosCreateValidationError]/errors/items/` response property for the response status `400`
- …earlier changes not shown

[Operation history](https://skmtc.dev/frikanalen/apis/frikanalen-django-api/changes/api/videos/post.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)
