video

Add a video to the db if it does not already exist.

Request

  • The document declares no server URL.
  • Auth
    OAuth 2
    Password
    Token URL: http://127.0.0.1:8000/o/token/ scopes: read write groups

Request body

video_idstring required

Video ID from YouTube URL, matches ^[A-Za-z0-9-_]{11}$

Response

uidstring required

A unique identifier, build with a namespace and an external id.

namestring required

Video title

descriptionstring nullable required

Video description, from YouTube

publication_datestring date-time nullable required
viewsinteger nullable required
uploaderstring nullable required

Name of the channel on YouTube

languagestring nullable required
rating_n_ratingsinteger required
rating_n_contributorsinteger required
durationinteger nullable required
video_idstring required

Video ID from YouTube URL, matches ^[A-Za-z0-9-_]{11}$

Changes

    • info

      the response's property default value 0 was added for the status

    • info

      the response's property default value 0 was added for the status

    • breaking

      the response's property format changed from date to date-time for status