videos

POST /api/videos

Changed on

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

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Request body

namestring required
descriptionstring nullable
organizationinteger
seriesIdinteger nullable
episodeNumberinteger nullable

Episode number within the series. Leave blank when the series is unordered.

durationstring
categoriesstring[]
framerateinteger

Framerate of master video in thousands / second

properImportboolean

Has the video been properly imported?

hasTonoRecordsboolean
publishOnWebboolean
isFillerboolean

You still have the editorial responsibility. Only affect videos from members.

refUrlstring

URL for reference

liveSourceinteger 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.

uploadedTimestring date-time nullable

Time the original video for the program was uploaded

Response

idinteger required
namestring required
descriptionstring nullable
creatorstring email required
organizationinteger
episodeNumberinteger nullable

Episode number within the series. Leave blank when the series is unordered.

durationstring
durationSecnumber double nullable required
categoriesstring[]
framerateinteger

Framerate of master video in thousands / second

properImportboolean

Has the video been properly imported?

hasTonoRecordsboolean
publishOnWebboolean
isBannedboolean 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.

isFillerboolean

You still have the editorial responsibility. Only affect videos from members.

refUrlstring

URL for reference

liveSourceinteger 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.

createdTimestring date-time required

Time the program record was created

updatedTimestring date-time required

Time the program record has been updated

uploadedTimestring date-time nullable

Time the original video for the program was uploaded

Changes

    • breaking

      the response property categories became optional for the status

    • info

      the request property categories became optional

    • info

      removed the required enum value from the oneOf[#/components/schemas/VideosCreateValidationError]/errors/items/oneOf[#/components/schemas/VideosCreateCategoriesErrorComponent]/code response property for the response status

    1 more change in this revision