Set the privacy of a video. The possible privacy settings are anybody, nobody, contacts, users, password, or disable.

This method requires a token with write permission.

Parameters

Log in to enter Playground
Name Type Description
video_id int (required) The ID of the video.
privacy string (required) The privacy setting to use.
users string A comma-separated list of users who can view the video.
password string The password to protect the video with.

Error Codes

Code Message Explanation
99 Insufficient permissions The user does not have permission to do that.
1 Video not found The video id was either invalid or not provided.
1 Video not found The video id was either invalid or was for a video not viewable by the calling user.
903 Invalid privacy type Valid types are anybody, nobody, contacts, users, password, or disable.

activity

albums

categories

channels

contacts

groups

groups.forums

oauth

people

test

videos

videos.comments

videos.embed

videos.upload