Update a video
Body
multipart/form-dataobjectthumbnailfileimage/jpegpreviewfileimage/jpegtagsstyle formexplode truechannelIdintegerNew channel of the video. The channel must be owned by the same account as the previous one. Use the "change ownership" endpoints to give a video to a channel owned by another account on the local PeerTube instance.
thumbnailfilestring<binary>Video thumbnail file
previewfilestring<binary>deprecatedDeprecated in PeerTube v8.1, use thumbnailfile instead
privacyVideoPrivacySet12345privacy id of the video (see /videos/privacies)
descriptionstringVideo description
waitTranscodingstringWhether or not we wait transcoding before publish 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
namestringVideo name
tagsArray<string>Video tags (maximum 5 tags each between 2 and 30 characters)
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> | nullDate when the content was originally published
scheduleUpdateVideoScheduledUpdatevideoPasswordsArray<password>Parameters
idid | UUIDv4 | shortUUIDrequiredpathThe object id, uuid or short uuid
Response
successful operation
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.