Set whether or not the user likes 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.
like bool (required) If this is true, we will record that the user likes this video. If false, we will remove it from their liked videos.

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.
95 Not allowed The user is not allowed to perform that action.
2 Owner cannot like own video The owner of a video cannot like their own video.

activity

albums

categories

channels

contacts

groups

groups.forums

oauth

people

test

videos

videos.comments

videos.embed

videos.upload