Initialize the resumable upload of a video
Uses a resumable protocol to initialize the upload of a video
Body
namestringrequiredVideo name
What is PeerTube?channelIdinteger>= 1requiredChannel id that will contain this video
3privacyVideoPrivacySet12345privacy id of the video (see /videos/privacies)
descriptionstringVideo 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)**
waitTranscodingbooleanWhether or not we wait transcoding before publish the video
generateTranscriptionbooleanPeerTube >= 6.2 If enabled by the admin, automatically generate a subtitle of the video
supportstringA text tell the audience how to support the video creator
Please support our work on https://soutenir.framasoft.org/en/ <3nsfwbooleanWhether or not this video contains sensitive content
nsfwSummaryanyMore information about the sensitive content of the video
nsfwFlagsNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
tagsArray<string>Video tags (maximum 5 tags each between 2 and 30 characters)
[
"framasoft",
"peertube"
]commentsPolicyVideoCommentsPolicySet123Comments policy of the video (Enabled = 1, Disabled = 2, Requires Approval = 3)
recommendationScopeVideoRecommendationScopeSet1234Videos that can be recommended next to a video:
1All videos2Only videos of the platform that owns the reference video (or of the current platform if no video is given)3Only videos of the account that owns the reference video4Only videos of the channel of the reference video
This is a preference of the video owner: applications displaying recommendations may not apply it
aiUsageVideoAIUsageSet1234PeerTube >= 9.0 Use of AI in the video, declared by the video creator:
1Not specified2No AI-generated content: nothing seen or heard in the video has been generated by AI3Contains AI-generated content: some parts of the video have been generated by AI4AI-generated: the whole video, or most of it, has been generated by AI
commercialContentVideoCommercialContentSet123PeerTube >= 9.0 Commercial content in the video, declared by the video creator:
1None2Promotional content: the creator promotes their own products, services or business3Paid partnership: a third party paid, or provided goods or services, in exchange for the promotion
downloadEnabledbooleanEnable or disable downloading for this video
originallyPublishedAtstring<date-time>Date when the content was originally published
scheduleUpdateVideoScheduledUpdatethumbnailfilestring<binary>Video thumbnail file
previewfilestring<binary>deprecatedDeprecated in PeerTube v8.1, use thumbnailfile instead
videoPasswordsArray<password>filenamestring<filename>requiredVideo filename including extension
what_is_peertube.mp4thumbnailfilestring<binary>Video thumbnail file
previewfilestring<binary>deprecatedDeprecated in PeerTube v8.1, use thumbnailfile instead
Parameters
X-Upload-Content-LengthnumberrequiredheaderNumber 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>requiredheaderMIME type of the file that you are uploading. Depending on your instance settings, acceptable values might vary.
Response
file already exists, send a resume request instead
created
Disambiguate via code:
max_file_size_reachedfor the absolute file size limitquota_reachedfor quota limits whether daily or global
video type unsupported
Authorization
OAuth2oauth2Authenticating via OAuth requires the following steps:
- Have an activated account
- Generate an access token for that account at
/api/v1/users/token. - Make requests with the Authorization: Bearer <token> header
- Profit, depending on the role assigned to the account
Note that the access token is valid for 1 day and is given along with a refresh token valid for 2 weeks.