Set the Creative Commons license on a video.

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.
license string (required) The license to set: by, by-sa, by-nd, by-nc, by-nc-sa, or by-nc-nd. Set to 0 for no license.

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.
2 Invalid license That is not a valid license type.

activity

albums

categories

channels

contacts

groups

groups.forums

oauth

people

test

videos

videos.comments

videos.embed

videos.upload