Video
Video Upload
Initialize the resumable upload of a video
Uses a resumable protocol to initialize the upload of a video
post/api/v1/videos/upload-resumable
Headers
X-Upload-Content-Lengthnumber required
Example:2469036
Number of bytes that will be uploaded in subsequent requests. Set this value to the size of the file you are uploading.
X-Upload-Content-Typestring mimetype required
Example:video/mp4
MIME type of the file that you are uploading. Depending on your instance settings, acceptable values might vary.
Request body
Example request
{
"category": 15,
"channelId": 3,
"description": "**[Want to help to translate this video?](https://weblate.framasoft.org/projects/what-is-peertube-video/)**\\r\\n\\r\\n**Take back the control of your videos! [#JoinPeertube](https://joinpeertube.org)**\n",
"language": "en",
"licence": 2,
"name": "What is PeerTube?",
"support": "Please support our work on https://soutenir.framasoft.org/en/ <3",
"tags": [
"framasoft",
"peertube"
],
"filename": "what_is_peertube.mp4"
}Response
file already exists, send a resume request instead